@juspay/neurolink 11.17.0 → 11.17.2
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/dist/server/index.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export { createMCPBodyAttachmentMiddleware, fastifyMCPBodyHook, } from "./middle
|
|
|
38
38
|
export { createRateLimitMiddleware, createSlidingWindowRateLimitMiddleware, InMemoryRateLimitStore, } from "./middleware/rateLimit.js";
|
|
39
39
|
export { CommonSchemas, createFieldValidator, createRequestValidationMiddleware, ValidationError, } from "./middleware/validation.js";
|
|
40
40
|
export { AgentExecuteRequestSchema as OpenAPIAgentExecuteRequestSchema, AgentExecuteResponseSchema, AgentInputSchema, ApiKeySecurityScheme, BasicSecurityScheme, BearerSecurityScheme, CommonParameters, ConversationMessageSchema, createApiInfo, createDeleteOperation, createErrorResponse as createOpenAPIErrorResponse, createGetOperation, createHeaderParameter, createOpenAPIGenerator, createPathParameter, createPostOperation, createQueryParameter, createServer as createOpenAPIServer, createStreamingPostOperation, createStreamingResponse, createSuccessResponse, DefaultServers, ErrorResponseSchema, generateOpenAPIFromConfig, generateOpenAPISpec, HealthResponseSchema, MCPServerStatusSchema, MCPServersListResponseSchema, MCPServerToolSchema, MetricsResponseSchema, NeuroLinkApiInfo, OpenAPIGenerator, OpenAPISchemas, ProviderInfoSchema, ReadyResponseSchema, SessionSchema, SessionsListResponseSchema, StandardErrorResponses, StandardTags, TokenUsageSchema, ToolCallSchema, ToolDefinitionSchema, ToolExecuteRequestSchema as OpenAPIToolExecuteRequestSchema, ToolExecuteResponseSchema, ToolListResponseSchema, ToolParameterSchema, } from "./openapi/index.js";
|
|
41
|
-
export { createAgentRoutes, createAllRoutes, createHealthRoutes, createMCPRoutes, createMemoryRoutes, createOpenApiRoutes, createToolRoutes, registerAllRoutes, } from "./routes/index.js";
|
|
41
|
+
export { createAgentRoutes, createAllRoutes, createHealthRoutes, createMCPRoutes, createMemoryRoutes, createOpenApiRoutes, createToolRoutes, registerAllRoutes, createClaudeProxyRoutes, createOpenAIProxyRoutes, createCodexProxyRoutes, } from "./routes/index.js";
|
|
42
42
|
export { BaseDataStreamWriter, createDataStreamResponse, createDataStreamWriter, createNDJSONHeaders, createSSEHeaders, DataStreamResponse, formatSSEEvent, pipeAsyncIterableToDataStream, WebStreamWriter, } from "./streaming/index.js";
|
|
43
43
|
export { ErrorCategory, ErrorSeverity, ServerAdapterErrorCode, } from "../types/index.js";
|
|
44
44
|
export { createStreamRedactor, redactStreamChunk } from "./utils/redaction.js";
|
package/dist/server/index.js
CHANGED
|
@@ -93,7 +93,12 @@ OpenAPIGenerator, OpenAPISchemas, ProviderInfoSchema, ReadyResponseSchema, Sessi
|
|
|
93
93
|
// ============================================
|
|
94
94
|
// Routes
|
|
95
95
|
// ============================================
|
|
96
|
-
export { createAgentRoutes, createAllRoutes, createHealthRoutes, createMCPRoutes, createMemoryRoutes, createOpenApiRoutes, createToolRoutes, registerAllRoutes,
|
|
96
|
+
export { createAgentRoutes, createAllRoutes, createHealthRoutes, createMCPRoutes, createMemoryRoutes, createOpenApiRoutes, createToolRoutes, registerAllRoutes,
|
|
97
|
+
// The proxy doors. All three were reachable only from the deep path
|
|
98
|
+
// ./routes/index.js, which is not a package export — so a consumer of
|
|
99
|
+
// "@juspay/neurolink/server" could reach them only indirectly through
|
|
100
|
+
// createAllRoutes' flags, never to mount one on its own.
|
|
101
|
+
createClaudeProxyRoutes, createOpenAIProxyRoutes, createCodexProxyRoutes, } from "./routes/index.js";
|
|
97
102
|
// ============================================
|
|
98
103
|
// Streaming
|
|
99
104
|
// ============================================
|
|
@@ -7,6 +7,7 @@ export { createAgentRoutes } from "./agentRoutes.js";
|
|
|
7
7
|
export { createClaudeProxyRoutes } from "./claudeProxyRoutes.js";
|
|
8
8
|
export { createHealthRoutes } from "./healthRoutes.js";
|
|
9
9
|
export { createOpenAIProxyRoutes } from "./openaiProxyRoutes.js";
|
|
10
|
+
export { createCodexProxyRoutes } from "./codexProxyRoutes.js";
|
|
10
11
|
export { createMCPRoutes } from "./mcpRoutes.js";
|
|
11
12
|
export { createMemoryRoutes } from "./memoryRoutes.js";
|
|
12
13
|
export { createOpenApiRoutes } from "./openApiRoutes.js";
|
|
@@ -7,6 +7,7 @@ import { createClaudeProxyRoutes } from "./claudeProxyRoutes.js";
|
|
|
7
7
|
// ClaudeProxyDeps removed
|
|
8
8
|
import { createHealthRoutes } from "./healthRoutes.js";
|
|
9
9
|
import { createOpenAIProxyRoutes } from "./openaiProxyRoutes.js";
|
|
10
|
+
import { createCodexProxyRoutes } from "./codexProxyRoutes.js";
|
|
10
11
|
import { createMCPRoutes } from "./mcpRoutes.js";
|
|
11
12
|
import { createMemoryRoutes } from "./memoryRoutes.js";
|
|
12
13
|
import { createOpenApiRoutes } from "./openApiRoutes.js";
|
|
@@ -17,6 +18,7 @@ export { createClaudeProxyRoutes } from "./claudeProxyRoutes.js";
|
|
|
17
18
|
// ClaudeProxyDeps removed
|
|
18
19
|
export { createHealthRoutes } from "./healthRoutes.js";
|
|
19
20
|
export { createOpenAIProxyRoutes } from "./openaiProxyRoutes.js";
|
|
21
|
+
export { createCodexProxyRoutes } from "./codexProxyRoutes.js";
|
|
20
22
|
export { createMCPRoutes } from "./mcpRoutes.js";
|
|
21
23
|
export { createMemoryRoutes } from "./memoryRoutes.js";
|
|
22
24
|
export { createOpenApiRoutes } from "./openApiRoutes.js";
|
|
@@ -37,16 +39,22 @@ export function createAllRoutes(basePath = "/api", options) {
|
|
|
37
39
|
if (options?.enableSwagger) {
|
|
38
40
|
routes.push(createOpenApiRoutes(basePath, options.getRoutes));
|
|
39
41
|
}
|
|
40
|
-
// Unified proxy flag enables
|
|
42
|
+
// Unified proxy flag enables every door. Codex was omitted here for long
|
|
43
|
+
// enough that it became reachable only from `neurolink proxy start`; a
|
|
44
|
+
// consumer opting into proxying means all of it, not a subset.
|
|
41
45
|
// Legacy per-format flags are still supported for backward compatibility.
|
|
42
46
|
const enableClaudeProxy = options?.proxy || options?.claudeProxy;
|
|
43
47
|
const enableOpenAIProxy = options?.proxy || options?.openaiProxy;
|
|
48
|
+
const enableCodexProxy = options?.proxy || options?.codexProxy;
|
|
44
49
|
if (enableClaudeProxy) {
|
|
45
50
|
routes.push(createClaudeProxyRoutes(undefined, basePath));
|
|
46
51
|
}
|
|
47
52
|
if (enableOpenAIProxy) {
|
|
48
53
|
routes.push(createOpenAIProxyRoutes(undefined, basePath));
|
|
49
54
|
}
|
|
55
|
+
if (enableCodexProxy) {
|
|
56
|
+
routes.push(createCodexProxyRoutes(basePath));
|
|
57
|
+
}
|
|
50
58
|
return routes;
|
|
51
59
|
}
|
|
52
60
|
/**
|
package/dist/types/server.d.ts
CHANGED
|
@@ -1058,10 +1058,18 @@ export type OpenAPISpec = {
|
|
|
1058
1058
|
export type CreateRoutesOptions = {
|
|
1059
1059
|
enableSwagger?: boolean;
|
|
1060
1060
|
getRoutes?: () => RouteDefinition[];
|
|
1061
|
-
/** Enable
|
|
1061
|
+
/** Enable every proxy door: Claude, OpenAI and Codex. */
|
|
1062
1062
|
proxy?: boolean;
|
|
1063
1063
|
claudeProxy?: boolean;
|
|
1064
1064
|
openaiProxy?: boolean;
|
|
1065
|
+
/**
|
|
1066
|
+
* Enable the Codex door on its own.
|
|
1067
|
+
*
|
|
1068
|
+
* Codex was reachable only from `neurolink proxy start` until this existed —
|
|
1069
|
+
* `createAllRoutes` mounted two of the three doors, so an SDK consumer could
|
|
1070
|
+
* not expose it even deliberately.
|
|
1071
|
+
*/
|
|
1072
|
+
codexProxy?: boolean;
|
|
1065
1073
|
};
|
|
1066
1074
|
/** Data stream finish event. */
|
|
1067
1075
|
export type FinishEvent = DataStreamEvent & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juspay/neurolink",
|
|
3
|
-
"version": "11.17.
|
|
3
|
+
"version": "11.17.2",
|
|
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": {
|