@juspay/neurolink 13.8.29 → 13.8.31
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 +4 -2
- package/dist/adapters/video/videoAnalyzer.d.ts +5 -0
- package/dist/adapters/video/videoAnalyzer.js +10 -2
- package/dist/browser/neurolink.min.js +559 -559
- package/dist/core/constants.js +1 -1
- package/dist/core/nativeGenerateLoop.d.ts +21 -0
- package/dist/core/nativeGenerateLoop.js +29 -21
- package/dist/factories/providerFactory.js +2 -2
- package/dist/mcp/externalServerManager.js +12 -1
- package/dist/providers/googleVertex/client.js +2 -2
- package/dist/providers/openaiChatCompletionsBase.js +12 -8
- package/dist/providers/openaiChatCompletionsClient.js +37 -6
- package/dist/proxy/claudeFormat.js +10 -7
- package/dist/proxy/geminiFormat.js +29 -33
- package/dist/proxy/proxyImageInput.d.ts +57 -9
- package/dist/proxy/proxyImageInput.js +162 -10
- package/dist/server/routes/CLAUDE.md +29 -0
- package/dist/utils/imageDetection.d.ts +22 -0
- package/dist/utils/imageDetection.js +95 -0
- package/dist/utils/modelRouter.d.ts +1 -1
- package/dist/utils/modelRouter.js +1 -1
- package/dist/utils/pricing.js +8 -0
- package/dist/utils/retryAfter.js +13 -6
- package/dist/utils/videoAnalysisProcessor.js +1 -1
- package/dist/voice/CLAUDE.md +79 -0
- package/docs-site/static/search-index.json +5 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
## [13.8.
|
|
1
|
+
## [13.8.31](https://github.com/juspay/neurolink/compare/v13.8.30...v13.8.31) (2026-11-01)
|
|
2
2
|
|
|
3
3
|
### Bug Fixes
|
|
4
4
|
|
|
5
|
-
- **(
|
|
5
|
+
- **(mcp):** keep stdin ref'd when a consumer is already reading it at import ([ba104cc](https://github.com/juspay/neurolink/commit/ba104ccbb0f73d57f004ecc60d0beb422548b77b))
|
|
6
|
+
- **(proxy):** verify inline image bytes and send their real type ([2d3d052](https://github.com/juspay/neurolink/commit/2d3d0521aad43b672a711833f15e98668bd06aa0))
|
|
7
|
+
- **(security):** validate tool dispatch and bound retry hints ([1198db1](https://github.com/juspay/neurolink/commit/1198db142437b23b064c14368c46d1d4427a66dc))
|
|
6
8
|
|
|
7
9
|
## [11.2.3](https://github.com/juspay/neurolink/compare/v11.2.2...v11.2.3) (2026-08-19)
|
|
8
10
|
|
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
import { AIProviderName } from "../../constants/enums.js";
|
|
10
10
|
import "../../services/server/ai/observability/instrumentation.js";
|
|
11
11
|
import type { ModelMessage } from "../../types/index.js";
|
|
12
|
+
/**
|
|
13
|
+
* Same policy as the text path: gemini-* models go to the global endpoint,
|
|
14
|
+
* since regional endpoints 404 for Gemini 3.x.
|
|
15
|
+
*/
|
|
16
|
+
export declare function resolveVideoLocation(model: string, configuredLocation: string): string;
|
|
12
17
|
export declare function analyzeVideoWithVertexAI(messages: ModelMessage[], options?: {
|
|
13
18
|
project?: string;
|
|
14
19
|
location?: string;
|
|
@@ -15,10 +15,11 @@ import { googleSdkProxyHttpOptions } from "../../proxy/proxyFetch.js";
|
|
|
15
15
|
import "../../services/server/ai/observability/instrumentation.js";
|
|
16
16
|
import { readFile } from "node:fs/promises";
|
|
17
17
|
import { NeuroLinkError, ErrorFactory } from "../../utils/errorHandling.js";
|
|
18
|
+
import { resolveVertexLocation } from "../../providers/googleVertex/client.js";
|
|
18
19
|
// ---------------------------------------------------------------------------
|
|
19
20
|
// Shared config
|
|
20
21
|
// ---------------------------------------------------------------------------
|
|
21
|
-
const DEFAULT_MODEL = "gemini-
|
|
22
|
+
const DEFAULT_MODEL = "gemini-3.8-flash";
|
|
22
23
|
const DEFAULT_LOCATION = "us-central1";
|
|
23
24
|
/**
|
|
24
25
|
* Extract content items from user messages
|
|
@@ -111,14 +112,21 @@ Ensure the final response is fully self-sufficient and does not reference extern
|
|
|
111
112
|
// ---------------------------------------------------------------------------
|
|
112
113
|
// Vertex AI
|
|
113
114
|
// ---------------------------------------------------------------------------
|
|
115
|
+
/**
|
|
116
|
+
* Same policy as the text path: gemini-* models go to the global endpoint,
|
|
117
|
+
* since regional endpoints 404 for Gemini 3.x.
|
|
118
|
+
*/
|
|
119
|
+
export function resolveVideoLocation(model, configuredLocation) {
|
|
120
|
+
return resolveVertexLocation(model, configuredLocation);
|
|
121
|
+
}
|
|
114
122
|
export async function analyzeVideoWithVertexAI(messages, options = {}) {
|
|
115
123
|
const startTime = Date.now();
|
|
116
124
|
const { GoogleGenAI } = await import("@google/genai");
|
|
117
125
|
// Get default config and merge with provided options
|
|
118
126
|
const config = await getVertexConfig();
|
|
119
127
|
const project = options.project ?? config.project;
|
|
120
|
-
const location = options.location ?? config.location;
|
|
121
128
|
const model = options.model || DEFAULT_MODEL;
|
|
129
|
+
const location = resolveVideoLocation(model, options.location ?? config.location);
|
|
122
130
|
// Convert frames content to parts array for Gemini
|
|
123
131
|
const parts = buildContentParts(messages);
|
|
124
132
|
const frameCount = parts.filter((part) => "inlineData" in part && part.inlineData).length;
|