@juspay/neurolink 13.0.3 → 13.1.1
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 +419 -419
- package/dist/cli/factories/commandFactory.js +13 -4
- package/dist/constants/enums.d.ts +2 -1
- package/dist/constants/enums.js +1 -0
- package/dist/localUsage/grokReader.js +6 -2
- package/dist/mcp/mcpRegistryClient.d.ts +70 -8
- package/dist/mcp/mcpRegistryClient.js +313 -23
- package/dist/mcp/mcpRegistryRemote.d.ts +50 -0
- package/dist/mcp/mcpRegistryRemote.js +289 -0
- package/dist/middleware/utils/guardrailsUtils.js +21 -9
- package/dist/middleware/utils/regexSafety.d.ts +46 -0
- package/dist/middleware/utils/regexSafety.js +483 -0
- package/dist/neurolink.d.ts +4 -0
- package/dist/neurolink.js +17 -0
- package/dist/providers/catalog/provider-catalog.schema.json +1 -1
- package/dist/providers/catalog/reka.json +15 -5
- package/dist/providers/cloudflareClef.js +5 -0
- package/dist/providers/decide/baseUrl.d.ts +8 -0
- package/dist/providers/decide/baseUrl.js +31 -0
- package/dist/providers/perplexityDecider.js +5 -0
- package/dist/providers/systemOneDecision.js +27 -3
- package/dist/types/guardrails.d.ts +54 -0
- package/dist/types/mcp.d.ts +105 -9
- package/dist/types/providerCatalog.d.ts +8 -7
- package/docs-site/static/search-index.json +52 -45
- package/package.json +8 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juspay/neurolink",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.1.1",
|
|
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": {
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"test:process-exit": "pnpm exec tsx test/continuous-test-suite-process-exit.ts",
|
|
97
97
|
"test:mcp-direct-name-repair": "pnpm exec tsx test/continuous-test-suite-mcp-direct-name-repair.ts",
|
|
98
98
|
"test:mcp:min-tools-readiness": "pnpm exec tsx test/continuous-test-suite-mcp-min-tools-readiness.ts",
|
|
99
|
-
"test:mcp:full": "pnpm run test:mcp:infra && pnpm run test:mcp:spans && pnpm run test:mcp:stdio-lifecycle && pnpm run test:mcp:min-tools-readiness && pnpm run test:mcp:sdk && pnpm run test:mcp:cli && pnpm run test:mcp:http",
|
|
99
|
+
"test:mcp:full": "pnpm run test:mcp:infra && pnpm run test:mcp:registry && pnpm run test:mcp:spans && pnpm run test:mcp:stdio-lifecycle && pnpm run test:mcp:min-tools-readiness && pnpm run test:mcp:sdk && pnpm run test:mcp:cli && pnpm run test:mcp:http",
|
|
100
100
|
"test:media": "pnpm exec tsx test/continuous-test-suite-media-gen.ts",
|
|
101
101
|
"test:media-registry-collisions": "pnpm exec tsx test/continuous-test-suite-media-registry-collisions.ts",
|
|
102
102
|
"test:memory": "pnpm exec tsx test/continuous-test-suite-memory.ts",
|
|
@@ -122,6 +122,7 @@
|
|
|
122
122
|
"test:loop-engine": "pnpm exec tsx test/continuous-test-suite-loop-engine.ts",
|
|
123
123
|
"test:middleware": "pnpm exec tsx test/continuous-test-suite-middleware.ts",
|
|
124
124
|
"test:stream-middleware": "pnpm exec tsx test/continuous-test-suite-stream-middleware.ts",
|
|
125
|
+
"test:guardrails-regex-safety": "pnpm exec tsx test/continuous-test-suite-guardrails-regex-safety.ts",
|
|
125
126
|
"test:stream-tool-telemetry": "pnpm exec tsx test/continuous-test-suite-stream-tool-telemetry.ts",
|
|
126
127
|
"test:tool-replay": "pnpm exec tsx test/continuous-test-suite-tool-replay.ts",
|
|
127
128
|
"test:memory:hippocampus": "pnpm exec tsx test/continuous-test-suite-memory-hippocampus.ts",
|
|
@@ -141,6 +142,7 @@
|
|
|
141
142
|
"test:anthropic-toolchoice": "pnpm exec tsx test/continuous-test-suite-anthropic-toolchoice.ts",
|
|
142
143
|
"test:mcp:spans": "pnpm exec tsx test/continuous-test-suite-mcp-spans.ts",
|
|
143
144
|
"test:mcp:infra": "pnpm exec tsx test/continuous-test-suite-mcp-infra.ts",
|
|
145
|
+
"test:mcp:registry": "pnpm exec tsx test/continuous-test-suite-mcp-registry.ts",
|
|
144
146
|
"test:vendor-recovery": "pnpm exec tsx test/continuous-test-suite-native-vendor-recovery.ts",
|
|
145
147
|
"test:anthropic-generate-guard": "pnpm exec tsx test/continuous-test-suite-anthropic-generate-guard.ts",
|
|
146
148
|
"test:stream-structured-output": "pnpm exec tsx test/continuous-test-suite-stream-structured-output.ts",
|
|
@@ -231,7 +233,7 @@
|
|
|
231
233
|
"// 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)": "",
|
|
232
234
|
"test:tool-routing": "pnpm exec tsx test/continuous-test-suite-tool-routing.ts",
|
|
233
235
|
"test:tool-routing-semantic": "pnpm exec tsx test/continuous-test-suite-tool-routing-semantic.ts",
|
|
234
|
-
"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: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 && 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:package-declarations",
|
|
236
|
+
"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: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:package-declarations",
|
|
235
237
|
"// 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)": "",
|
|
236
238
|
"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 && pnpm run test:model-not-found-retryable",
|
|
237
239
|
"// 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)": "",
|
|
@@ -291,10 +293,11 @@
|
|
|
291
293
|
"check:all": "pnpm run lint && pnpm run format --check && pnpm run validate && pnpm run validate:commit",
|
|
292
294
|
"test:file-formats": "pnpm exec tsx test/continuous-test-suite-file-formats.ts",
|
|
293
295
|
"test:audio-transcription": "pnpm exec tsx test/continuous-test-suite-audio-transcription.ts",
|
|
294
|
-
"test:multimodal": "pnpm run test:file-formats && pnpm run test:multimodal:sdk && pnpm run test:video-native && pnpm run test:video-frames && pnpm run test:video-no-ffprobe",
|
|
296
|
+
"test:multimodal": "pnpm run test:file-formats && pnpm run test:multimodal:sdk && pnpm run test:video-native && pnpm run test:video-frames && pnpm run test:video-no-ffprobe && pnpm run test:video-openai",
|
|
295
297
|
"test:multimodal:sdk": "pnpm exec tsx test/continuous-test-suite-multimodal-sdk.ts",
|
|
296
298
|
"test:video-frames": "pnpm exec tsx test/continuous-test-suite-video-frames.ts",
|
|
297
299
|
"test:video-no-ffprobe": "pnpm exec tsx test/continuous-test-suite-video-no-ffprobe.ts",
|
|
300
|
+
"test:video-openai": "pnpm exec tsx test/continuous-test-suite-video-openai.ts",
|
|
298
301
|
"test:model-default-resolution": "pnpm exec tsx test/continuous-test-suite-model-default-resolution.ts",
|
|
299
302
|
"test:provider-model-resolution": "pnpm exec tsx test/continuous-test-suite-provider-model-resolution.ts",
|
|
300
303
|
"test:video-native": "pnpm exec tsx test/continuous-test-suite-video-native.ts",
|
|
@@ -322,6 +325,7 @@
|
|
|
322
325
|
"test:docs-search-index": "pnpm exec tsx test/continuous-test-suite-docs-search-index.ts",
|
|
323
326
|
"test:docs-snippets": "pnpm exec tsx test/continuous-test-suite-docs-snippets.ts",
|
|
324
327
|
"test:docs-snippets:update": "pnpm exec tsx test/continuous-test-suite-docs-snippets.ts --update-ledger",
|
|
328
|
+
"test:docs-methods": "pnpm exec tsx test/continuous-test-suite-docs-methods.ts",
|
|
325
329
|
"test:import-cost": "pnpm exec tsx test/continuous-test-suite-import-cost.ts",
|
|
326
330
|
"test:vertex-claude-characterization": "tsx test/continuous-test-suite-vertex-claude-characterization.ts",
|
|
327
331
|
"test:toolfree-guard-overhead": "pnpm exec tsx test/continuous-test-suite-toolfree-guard-overhead.ts",
|