@juspay/neurolink 11.15.3 → 11.15.4
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 +247 -247
- package/dist/server/routes/claudeProxyRoutes.js +11 -2
- package/package.json +1 -1
|
@@ -6056,6 +6056,15 @@ export function createClaudeProxyRoutes(modelRouter, basePath = "", accountStrat
|
|
|
6056
6056
|
handler: async (ctx) => {
|
|
6057
6057
|
const routing = runtimeConfigProvider?.();
|
|
6058
6058
|
const effectiveAllowlist = routing?.accountAllowlist ?? accountAllowlist;
|
|
6059
|
+
// Hot-reloaded routing wins over the value baked in at construction,
|
|
6060
|
+
// the same precedence the request path uses.
|
|
6061
|
+
const effectivePrimaryKey = routing?.primaryAccountKey ?? primaryAccountKey;
|
|
6062
|
+
// Rows carry a bare label in one loop and a full pool key in the
|
|
6063
|
+
// other; anthropicAccountKeysEqual normalises both, so neither can
|
|
6064
|
+
// miss the match on prefix alone.
|
|
6065
|
+
const isPrimaryAccount = (keyOrLabel) => !!effectivePrimaryKey &&
|
|
6066
|
+
!!keyOrLabel &&
|
|
6067
|
+
anthropicAccountKeysEqual(keyOrLabel, effectivePrimaryKey);
|
|
6059
6068
|
// Cached by default. This endpoint is built to be polled, and a live
|
|
6060
6069
|
// refresh spends the user's own OAuth credentials against Anthropic's
|
|
6061
6070
|
// usage API — one dashboard on a short interval would hammer it.
|
|
@@ -6160,7 +6169,7 @@ export function createClaudeProxyRoutes(modelRouter, basePath = "", accountStrat
|
|
|
6160
6169
|
cooling,
|
|
6161
6170
|
allowed: null,
|
|
6162
6171
|
expired: null,
|
|
6163
|
-
isPrimary:
|
|
6172
|
+
isPrimary: isPrimaryAccount(result.key ?? label),
|
|
6164
6173
|
requests: stat ? stat.successCount + stat.errorCount : null,
|
|
6165
6174
|
errors: stat?.errorCount ?? null,
|
|
6166
6175
|
rateLimits: stat?.rateLimitCount ?? null,
|
|
@@ -6204,7 +6213,7 @@ export function createClaudeProxyRoutes(modelRouter, basePath = "", accountStrat
|
|
|
6204
6213
|
cooling: false,
|
|
6205
6214
|
allowed: null,
|
|
6206
6215
|
expired: null,
|
|
6207
|
-
isPrimary:
|
|
6216
|
+
isPrimary: isPrimaryAccount(entry.label),
|
|
6208
6217
|
requests: entry.successCount + entry.errorCount,
|
|
6209
6218
|
errors: entry.errorCount,
|
|
6210
6219
|
rateLimits: entry.rateLimitCount,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juspay/neurolink",
|
|
3
|
-
"version": "11.15.
|
|
3
|
+
"version": "11.15.4",
|
|
4
4
|
"packageManager": "pnpm@10.15.1",
|
|
5
5
|
"description": "TypeScript AI SDK with 24+ LLM providers behind one consistent API. MCP-native (connect any MCP server), voice TTS/STT/realtime, RAG, agents, memory, context compaction. OpenAI · Anthropic · Gemini · Bedrock · Azure · Ollama · DeepSeek · NVIDIA NIM and more.",
|
|
6
6
|
"author": {
|