@juspay/neurolink 6.1.0 → 6.2.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.
- package/CHANGELOG.md +10 -6
- package/dist/cli/commands/config.d.ts +13 -13
- package/dist/cli/index.js +3 -9
- package/dist/core/analytics.d.ts +11 -1
- package/dist/core/analytics.js +2 -2
- package/dist/core/base-provider.js +4 -18
- package/dist/core/dynamic-models.d.ts +8 -8
- package/dist/core/factory.js +3 -11
- package/dist/index.d.ts +2 -4
- package/dist/index.js +2 -11
- package/dist/lib/core/analytics.d.ts +11 -1
- package/dist/lib/core/analytics.js +2 -2
- package/dist/lib/core/base-provider.js +4 -18
- package/dist/lib/core/dynamic-models.d.ts +8 -8
- package/dist/lib/core/factory.js +3 -11
- package/dist/lib/index.d.ts +2 -4
- package/dist/lib/index.js +2 -11
- package/dist/lib/mcp/factory.d.ts +1 -1
- package/dist/lib/mcp/index.d.ts +7 -19
- package/dist/lib/mcp/index.js +15 -56
- package/dist/lib/neurolink.d.ts +1 -9
- package/dist/lib/neurolink.js +21 -70
- package/dist/lib/providers/amazon-bedrock.js +5 -16
- package/dist/lib/providers/anthropic-baseprovider.js +3 -21
- package/dist/lib/providers/anthropic.js +4 -7
- package/dist/lib/providers/azure-openai.js +4 -2
- package/dist/lib/providers/google-vertex.js +5 -9
- package/dist/lib/providers/huggingFace.js +5 -10
- package/dist/lib/providers/mistral.js +5 -8
- package/dist/lib/providers/openAI.js +4 -7
- package/dist/lib/utils/providerConfig.d.ts +117 -0
- package/dist/lib/utils/providerConfig.js +353 -0
- package/dist/lib/utils/providerUtils.d.ts +2 -1
- package/dist/lib/utils/providerUtils.js +53 -36
- package/dist/lib/utils/timeout.d.ts +72 -1
- package/dist/lib/utils/timeout.js +203 -2
- package/dist/mcp/factory.d.ts +1 -1
- package/dist/mcp/index.d.ts +7 -19
- package/dist/mcp/index.js +15 -56
- package/dist/neurolink.d.ts +1 -9
- package/dist/neurolink.js +21 -70
- package/dist/providers/amazon-bedrock.js +5 -16
- package/dist/providers/anthropic-baseprovider.js +3 -21
- package/dist/providers/anthropic.js +4 -7
- package/dist/providers/azure-openai.js +4 -2
- package/dist/providers/google-vertex.js +5 -9
- package/dist/providers/huggingFace.js +5 -10
- package/dist/providers/mistral.js +5 -8
- package/dist/providers/openAI.js +4 -7
- package/dist/utils/providerConfig.d.ts +117 -0
- package/dist/utils/providerConfig.js +353 -0
- package/dist/utils/providerUtils.d.ts +2 -1
- package/dist/utils/providerUtils.js +53 -36
- package/dist/utils/timeout.d.ts +72 -1
- package/dist/utils/timeout.js +203 -2
- package/package.json +1 -1
- package/dist/chat/client-utils.d.ts +0 -95
- package/dist/chat/client-utils.js +0 -315
- package/dist/chat/index.d.ts +0 -24
- package/dist/chat/index.js +0 -33
- package/dist/chat/session-storage.d.ts +0 -77
- package/dist/chat/session-storage.js +0 -233
- package/dist/chat/session.d.ts +0 -96
- package/dist/chat/session.js +0 -257
- package/dist/chat/sse-handler.d.ts +0 -49
- package/dist/chat/sse-handler.js +0 -259
- package/dist/chat/types.d.ts +0 -74
- package/dist/chat/types.js +0 -5
- package/dist/chat/websocket-chat-handler.d.ts +0 -37
- package/dist/chat/websocket-chat-handler.js +0 -262
- package/dist/cli/commands/mcp.d.ts +0 -20
- package/dist/cli/commands/mcp.js +0 -1272
- package/dist/core/defaults.d.ts +0 -19
- package/dist/core/defaults.js +0 -29
- package/dist/core/evaluation-config.d.ts +0 -29
- package/dist/core/evaluation-config.js +0 -144
- package/dist/factories/compatibility-factory.d.ts +0 -35
- package/dist/factories/compatibility-factory.js +0 -71
- package/dist/factories/provider-generate-factory.d.ts +0 -20
- package/dist/factories/provider-generate-factory.js +0 -93
- package/dist/lib/chat/client-utils.d.ts +0 -95
- package/dist/lib/chat/client-utils.js +0 -315
- package/dist/lib/chat/index.d.ts +0 -24
- package/dist/lib/chat/index.js +0 -33
- package/dist/lib/chat/session-storage.d.ts +0 -77
- package/dist/lib/chat/session-storage.js +0 -233
- package/dist/lib/chat/session.d.ts +0 -96
- package/dist/lib/chat/session.js +0 -257
- package/dist/lib/chat/sse-handler.d.ts +0 -49
- package/dist/lib/chat/sse-handler.js +0 -259
- package/dist/lib/chat/types.d.ts +0 -74
- package/dist/lib/chat/types.js +0 -5
- package/dist/lib/chat/websocket-chat-handler.d.ts +0 -37
- package/dist/lib/chat/websocket-chat-handler.js +0 -262
- package/dist/lib/core/defaults.d.ts +0 -19
- package/dist/lib/core/defaults.js +0 -29
- package/dist/lib/core/evaluation-config.d.ts +0 -29
- package/dist/lib/core/evaluation-config.js +0 -144
- package/dist/lib/factories/compatibility-factory.d.ts +0 -35
- package/dist/lib/factories/compatibility-factory.js +0 -71
- package/dist/lib/factories/provider-generate-factory.d.ts +0 -20
- package/dist/lib/factories/provider-generate-factory.js +0 -93
- package/dist/lib/mcp/adapters/plugin-bridge.d.ts +0 -40
- package/dist/lib/mcp/adapters/plugin-bridge.js +0 -89
- package/dist/lib/mcp/auto-discovery.d.ts +0 -62
- package/dist/lib/mcp/auto-discovery.js +0 -149
- package/dist/lib/mcp/client.d.ts +0 -68
- package/dist/lib/mcp/client.js +0 -248
- package/dist/lib/mcp/config.d.ts +0 -31
- package/dist/lib/mcp/config.js +0 -99
- package/dist/lib/mcp/context-manager.d.ts +0 -171
- package/dist/lib/mcp/context-manager.js +0 -362
- package/dist/lib/mcp/contracts/mcp-contract.d.ts +0 -169
- package/dist/lib/mcp/contracts/mcp-contract.js +0 -58
- package/dist/lib/mcp/core/plugin-manager.d.ts +0 -46
- package/dist/lib/mcp/core/plugin-manager.js +0 -110
- package/dist/lib/mcp/demo/plugin-demo.d.ts +0 -20
- package/dist/lib/mcp/demo/plugin-demo.js +0 -118
- package/dist/lib/mcp/dynamic-chain-executor.d.ts +0 -225
- package/dist/lib/mcp/dynamic-chain-executor.js +0 -489
- package/dist/lib/mcp/dynamic-orchestrator.d.ts +0 -115
- package/dist/lib/mcp/dynamic-orchestrator.js +0 -351
- package/dist/lib/mcp/ecosystem.d.ts +0 -75
- package/dist/lib/mcp/ecosystem.js +0 -161
- package/dist/lib/mcp/error-manager.d.ts +0 -254
- package/dist/lib/mcp/error-manager.js +0 -501
- package/dist/lib/mcp/error-recovery.d.ts +0 -159
- package/dist/lib/mcp/error-recovery.js +0 -405
- package/dist/lib/mcp/external-client.d.ts +0 -88
- package/dist/lib/mcp/external-client.js +0 -331
- package/dist/lib/mcp/external-manager.d.ts +0 -112
- package/dist/lib/mcp/external-manager.js +0 -308
- package/dist/lib/mcp/function-calling.d.ts +0 -65
- package/dist/lib/mcp/function-calling.js +0 -642
- package/dist/lib/mcp/health-monitor.d.ts +0 -257
- package/dist/lib/mcp/health-monitor.js +0 -630
- package/dist/lib/mcp/initialize-tools.d.ts +0 -29
- package/dist/lib/mcp/initialize-tools.js +0 -261
- package/dist/lib/mcp/initialize.d.ts +0 -18
- package/dist/lib/mcp/initialize.js +0 -62
- package/dist/lib/mcp/manager.d.ts +0 -68
- package/dist/lib/mcp/manager.js +0 -176
- package/dist/lib/mcp/neurolink-mcp-client.d.ts +0 -97
- package/dist/lib/mcp/neurolink-mcp-client.js +0 -462
- package/dist/lib/mcp/orchestrator.d.ts +0 -302
- package/dist/lib/mcp/orchestrator.js +0 -703
- package/dist/lib/mcp/plugin-manager.d.ts +0 -98
- package/dist/lib/mcp/plugin-manager.js +0 -296
- package/dist/lib/mcp/plugins/core/filesystem-mcp.d.ts +0 -36
- package/dist/lib/mcp/plugins/core/filesystem-mcp.js +0 -142
- package/dist/lib/mcp/plugins/filesystem-mcp.d.ts +0 -37
- package/dist/lib/mcp/plugins/filesystem-mcp.js +0 -54
- package/dist/lib/mcp/security-manager.d.ts +0 -87
- package/dist/lib/mcp/security-manager.js +0 -344
- package/dist/lib/mcp/semaphore-manager.d.ts +0 -137
- package/dist/lib/mcp/semaphore-manager.js +0 -329
- package/dist/lib/mcp/session-manager.d.ts +0 -187
- package/dist/lib/mcp/session-manager.js +0 -400
- package/dist/lib/mcp/session-persistence.d.ts +0 -93
- package/dist/lib/mcp/session-persistence.js +0 -301
- package/dist/lib/mcp/tool-integration.d.ts +0 -58
- package/dist/lib/mcp/tool-integration.js +0 -203
- package/dist/lib/mcp/transport-manager.d.ts +0 -154
- package/dist/lib/mcp/transport-manager.js +0 -334
- package/dist/lib/mcp/unified-mcp.d.ts +0 -133
- package/dist/lib/mcp/unified-mcp.js +0 -251
- package/dist/lib/mcp/unified-registry.d.ts +0 -165
- package/dist/lib/mcp/unified-registry.js +0 -538
- package/dist/lib/providers/analytics-helper.d.ts +0 -38
- package/dist/lib/providers/analytics-helper.js +0 -216
- package/dist/lib/providers/function-calling-provider.d.ts +0 -142
- package/dist/lib/providers/function-calling-provider.js +0 -630
- package/dist/lib/providers/mcp-provider.d.ts +0 -75
- package/dist/lib/providers/mcp-provider.js +0 -283
- package/dist/lib/providers/timeout-wrapper.d.ts +0 -40
- package/dist/lib/providers/timeout-wrapper.js +0 -100
- package/dist/lib/sdk/tool-extension.d.ts +0 -181
- package/dist/lib/sdk/tool-extension.js +0 -284
- package/dist/lib/services/streaming/streaming-manager.d.ts +0 -29
- package/dist/lib/services/streaming/streaming-manager.js +0 -245
- package/dist/lib/services/types.d.ts +0 -156
- package/dist/lib/services/types.js +0 -2
- package/dist/lib/services/websocket/websocket-server.d.ts +0 -34
- package/dist/lib/services/websocket/websocket-server.js +0 -305
- package/dist/lib/utils/provider-validation.d.ts +0 -36
- package/dist/lib/utils/provider-validation.js +0 -625
- package/dist/lib/utils/providerUtils-fixed.d.ts +0 -8
- package/dist/lib/utils/providerUtils-fixed.js +0 -94
- package/dist/lib/utils/streaming-utils.d.ts +0 -79
- package/dist/lib/utils/streaming-utils.js +0 -198
- package/dist/lib/utils/timeout-manager.d.ts +0 -75
- package/dist/lib/utils/timeout-manager.js +0 -244
- package/dist/mcp/adapters/plugin-bridge.d.ts +0 -40
- package/dist/mcp/adapters/plugin-bridge.js +0 -89
- package/dist/mcp/auto-discovery.d.ts +0 -62
- package/dist/mcp/auto-discovery.js +0 -149
- package/dist/mcp/client.d.ts +0 -68
- package/dist/mcp/client.js +0 -248
- package/dist/mcp/config.d.ts +0 -31
- package/dist/mcp/config.js +0 -99
- package/dist/mcp/context-manager.d.ts +0 -171
- package/dist/mcp/context-manager.js +0 -362
- package/dist/mcp/contracts/mcp-contract.d.ts +0 -169
- package/dist/mcp/contracts/mcp-contract.js +0 -58
- package/dist/mcp/core/plugin-manager.d.ts +0 -46
- package/dist/mcp/core/plugin-manager.js +0 -110
- package/dist/mcp/demo/plugin-demo.d.ts +0 -20
- package/dist/mcp/demo/plugin-demo.js +0 -118
- package/dist/mcp/dynamic-chain-executor.d.ts +0 -225
- package/dist/mcp/dynamic-chain-executor.js +0 -489
- package/dist/mcp/dynamic-orchestrator.d.ts +0 -115
- package/dist/mcp/dynamic-orchestrator.js +0 -351
- package/dist/mcp/ecosystem.d.ts +0 -75
- package/dist/mcp/ecosystem.js +0 -162
- package/dist/mcp/error-manager.d.ts +0 -254
- package/dist/mcp/error-manager.js +0 -501
- package/dist/mcp/error-recovery.d.ts +0 -159
- package/dist/mcp/error-recovery.js +0 -405
- package/dist/mcp/external-client.d.ts +0 -88
- package/dist/mcp/external-client.js +0 -331
- package/dist/mcp/external-manager.d.ts +0 -112
- package/dist/mcp/external-manager.js +0 -308
- package/dist/mcp/function-calling.d.ts +0 -65
- package/dist/mcp/function-calling.js +0 -642
- package/dist/mcp/health-monitor.d.ts +0 -257
- package/dist/mcp/health-monitor.js +0 -630
- package/dist/mcp/initialize-tools.d.ts +0 -29
- package/dist/mcp/initialize-tools.js +0 -262
- package/dist/mcp/initialize.d.ts +0 -18
- package/dist/mcp/initialize.js +0 -62
- package/dist/mcp/manager.d.ts +0 -68
- package/dist/mcp/manager.js +0 -176
- package/dist/mcp/neurolink-mcp-client.d.ts +0 -97
- package/dist/mcp/neurolink-mcp-client.js +0 -462
- package/dist/mcp/orchestrator.d.ts +0 -302
- package/dist/mcp/orchestrator.js +0 -703
- package/dist/mcp/plugin-manager.d.ts +0 -98
- package/dist/mcp/plugin-manager.js +0 -297
- package/dist/mcp/plugins/core/filesystem-mcp.d.ts +0 -36
- package/dist/mcp/plugins/core/filesystem-mcp.js +0 -142
- package/dist/mcp/plugins/core/neurolink-mcp.json +0 -17
- package/dist/mcp/plugins/filesystem-mcp.d.ts +0 -37
- package/dist/mcp/plugins/filesystem-mcp.js +0 -54
- package/dist/mcp/security-manager.d.ts +0 -87
- package/dist/mcp/security-manager.js +0 -344
- package/dist/mcp/semaphore-manager.d.ts +0 -137
- package/dist/mcp/semaphore-manager.js +0 -329
- package/dist/mcp/session-manager.d.ts +0 -187
- package/dist/mcp/session-manager.js +0 -400
- package/dist/mcp/session-persistence.d.ts +0 -93
- package/dist/mcp/session-persistence.js +0 -302
- package/dist/mcp/tool-integration.d.ts +0 -58
- package/dist/mcp/tool-integration.js +0 -203
- package/dist/mcp/transport-manager.d.ts +0 -154
- package/dist/mcp/transport-manager.js +0 -335
- package/dist/mcp/unified-mcp.d.ts +0 -133
- package/dist/mcp/unified-mcp.js +0 -251
- package/dist/mcp/unified-registry.d.ts +0 -165
- package/dist/mcp/unified-registry.js +0 -539
- package/dist/providers/analytics-helper.d.ts +0 -38
- package/dist/providers/analytics-helper.js +0 -216
- package/dist/providers/function-calling-provider.d.ts +0 -142
- package/dist/providers/function-calling-provider.js +0 -630
- package/dist/providers/mcp-provider.d.ts +0 -75
- package/dist/providers/mcp-provider.js +0 -283
- package/dist/providers/timeout-wrapper.d.ts +0 -40
- package/dist/providers/timeout-wrapper.js +0 -100
- package/dist/sdk/tool-extension.d.ts +0 -181
- package/dist/sdk/tool-extension.js +0 -284
- package/dist/services/streaming/streaming-manager.d.ts +0 -29
- package/dist/services/streaming/streaming-manager.js +0 -245
- package/dist/services/types.d.ts +0 -156
- package/dist/services/types.js +0 -2
- package/dist/services/websocket/websocket-server.d.ts +0 -34
- package/dist/services/websocket/websocket-server.js +0 -306
- package/dist/utils/provider-validation.d.ts +0 -36
- package/dist/utils/provider-validation.js +0 -625
- package/dist/utils/providerUtils-fixed.d.ts +0 -8
- package/dist/utils/providerUtils-fixed.js +0 -94
- package/dist/utils/streaming-utils.d.ts +0 -79
- package/dist/utils/streaming-utils.js +0 -198
- package/dist/utils/timeout-manager.d.ts +0 -75
- package/dist/utils/timeout-manager.js +0 -244
|
@@ -1,302 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NeuroLink MCP Tool Orchestration Engine
|
|
3
|
-
* Central orchestrator for coordinated tool execution with pipeline management
|
|
4
|
-
* Coordinates factory, registry, context, and AI tools for seamless operation
|
|
5
|
-
* Now with semaphore-based race condition prevention
|
|
6
|
-
*/
|
|
7
|
-
import type { ToolResult } from "./factory.js";
|
|
8
|
-
import type { JsonValue, UnknownRecord } from "../types/common.js";
|
|
9
|
-
import { MCPToolRegistry, type ToolExecutionOptions } from "./tool-registry.js";
|
|
10
|
-
import { ContextManager, type ContextRequest } from "./context-manager.js";
|
|
11
|
-
import { SemaphoreManager } from "./semaphore-manager.js";
|
|
12
|
-
import { SessionManager, type OrchestratorSession, type SessionOptions } from "./session-manager.js";
|
|
13
|
-
import { ErrorManager } from "./error-manager.js";
|
|
14
|
-
import { HealthMonitor, type HealthMonitorOptions } from "./health-monitor.js";
|
|
15
|
-
import { TransportManager, type TransportConfig, type TransportManagerOptions } from "./transport-manager.js";
|
|
16
|
-
/**
|
|
17
|
-
* Pipeline execution options
|
|
18
|
-
*/
|
|
19
|
-
export interface PipelineOptions {
|
|
20
|
-
stopOnError?: boolean;
|
|
21
|
-
parallel?: boolean;
|
|
22
|
-
timeout?: number;
|
|
23
|
-
trackMetrics?: boolean;
|
|
24
|
-
validateInputs?: boolean;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Tool execution step in a pipeline
|
|
28
|
-
*/
|
|
29
|
-
export interface PipelineStep {
|
|
30
|
-
toolName: string;
|
|
31
|
-
params: JsonValue;
|
|
32
|
-
options?: ToolExecutionOptions;
|
|
33
|
-
dependsOn?: string[];
|
|
34
|
-
stepId?: string;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Pipeline execution result
|
|
38
|
-
*/
|
|
39
|
-
export interface PipelineResult {
|
|
40
|
-
success: boolean;
|
|
41
|
-
results: Map<string, ToolResult>;
|
|
42
|
-
errors: Map<string, string>;
|
|
43
|
-
executionTime: number;
|
|
44
|
-
stepsExecuted: number;
|
|
45
|
-
stepsSkipped: number;
|
|
46
|
-
metadata: {
|
|
47
|
-
pipelineId: string;
|
|
48
|
-
sessionId: string;
|
|
49
|
-
timestamp: number;
|
|
50
|
-
parallel: boolean;
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Text generation pipeline result
|
|
55
|
-
*/
|
|
56
|
-
export interface TextPipelineResult {
|
|
57
|
-
success: boolean;
|
|
58
|
-
text?: string;
|
|
59
|
-
provider?: string;
|
|
60
|
-
model?: string;
|
|
61
|
-
executionTime: number;
|
|
62
|
-
usage?: {
|
|
63
|
-
tokens?: number;
|
|
64
|
-
cost?: number;
|
|
65
|
-
};
|
|
66
|
-
metadata: {
|
|
67
|
-
sessionId: string;
|
|
68
|
-
timestamp: number;
|
|
69
|
-
toolsUsed: string[];
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* NeuroLink MCP Tool Orchestrator
|
|
74
|
-
* Central coordination engine for tool execution, pipelines, and AI operations
|
|
75
|
-
*/
|
|
76
|
-
export declare class MCPOrchestrator {
|
|
77
|
-
protected registry: MCPToolRegistry;
|
|
78
|
-
protected contextManager: ContextManager;
|
|
79
|
-
protected semaphoreManager: SemaphoreManager;
|
|
80
|
-
protected sessionManager: SessionManager;
|
|
81
|
-
protected errorManager: ErrorManager;
|
|
82
|
-
protected healthMonitor: HealthMonitor | null;
|
|
83
|
-
protected transportManager: TransportManager | null;
|
|
84
|
-
protected pipelineCounter: number;
|
|
85
|
-
constructor(registry?: MCPToolRegistry, contextManager?: ContextManager, semaphoreManager?: SemaphoreManager, sessionManager?: SessionManager, errorManager?: ErrorManager);
|
|
86
|
-
/**
|
|
87
|
-
* Initialize with default servers (AI Core)
|
|
88
|
-
*/
|
|
89
|
-
private initializeDefaultServers;
|
|
90
|
-
/**
|
|
91
|
-
* Execute a single tool with full orchestration
|
|
92
|
-
*
|
|
93
|
-
* @param toolName Tool name to execute
|
|
94
|
-
* @param params Tool parameters
|
|
95
|
-
* @param contextRequest Context creation request
|
|
96
|
-
* @param options Execution options
|
|
97
|
-
* @returns Tool execution result
|
|
98
|
-
*/
|
|
99
|
-
executeTool(toolName: string, params: JsonValue, contextRequest?: ContextRequest, options?: ToolExecutionOptions & {
|
|
100
|
-
sessionOptions?: SessionOptions;
|
|
101
|
-
}): Promise<ToolResult>;
|
|
102
|
-
/**
|
|
103
|
-
* Execute a pipeline of tools with dependency management
|
|
104
|
-
*
|
|
105
|
-
* @param steps Pipeline steps to execute
|
|
106
|
-
* @param contextRequest Context creation request
|
|
107
|
-
* @param options Pipeline execution options
|
|
108
|
-
* @returns Pipeline execution result
|
|
109
|
-
*/
|
|
110
|
-
executePipeline(steps: PipelineStep[], contextRequest?: ContextRequest, options?: PipelineOptions): Promise<PipelineResult>;
|
|
111
|
-
/**
|
|
112
|
-
* Execute AI text generation pipeline (high-level convenience method)
|
|
113
|
-
*
|
|
114
|
-
* @param prompt Text prompt for generation
|
|
115
|
-
* @param contextRequest Context creation request
|
|
116
|
-
* @param options Additional generation options
|
|
117
|
-
* @returns Text generation result
|
|
118
|
-
*/
|
|
119
|
-
executeTextPipeline(prompt: string, contextRequest?: ContextRequest, options?: {
|
|
120
|
-
provider?: string;
|
|
121
|
-
model?: string;
|
|
122
|
-
temperature?: number;
|
|
123
|
-
maxTokens?: number;
|
|
124
|
-
systemPrompt?: string;
|
|
125
|
-
customTools?: string[];
|
|
126
|
-
}): Promise<TextPipelineResult>;
|
|
127
|
-
/**
|
|
128
|
-
* Get orchestrator statistics
|
|
129
|
-
*
|
|
130
|
-
* @returns Comprehensive orchestrator statistics
|
|
131
|
-
*/
|
|
132
|
-
getStats(): {
|
|
133
|
-
registry: UnknownRecord;
|
|
134
|
-
context: UnknownRecord;
|
|
135
|
-
session: UnknownRecord;
|
|
136
|
-
error: UnknownRecord;
|
|
137
|
-
health?: UnknownRecord;
|
|
138
|
-
orchestrator: {
|
|
139
|
-
pipelinesExecuted: number;
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
/**
|
|
143
|
-
* Get session by ID
|
|
144
|
-
*
|
|
145
|
-
* @param sessionId Session identifier
|
|
146
|
-
* @param extend Whether to extend session expiration
|
|
147
|
-
* @returns Session or null if not found
|
|
148
|
-
*/
|
|
149
|
-
getSession(sessionId: string, extend?: boolean): Promise<OrchestratorSession | null>;
|
|
150
|
-
/**
|
|
151
|
-
* Create a new session for continuous tool calling
|
|
152
|
-
*
|
|
153
|
-
* @param contextRequest Context creation request
|
|
154
|
-
* @param sessionOptions Session configuration options
|
|
155
|
-
* @returns Created session
|
|
156
|
-
*/
|
|
157
|
-
createSession(contextRequest?: ContextRequest, sessionOptions?: SessionOptions): Promise<OrchestratorSession>;
|
|
158
|
-
/**
|
|
159
|
-
* Set session state value
|
|
160
|
-
*
|
|
161
|
-
* @param sessionId Session identifier
|
|
162
|
-
* @param key State key
|
|
163
|
-
* @param value State value
|
|
164
|
-
* @returns Success status
|
|
165
|
-
*/
|
|
166
|
-
setSessionState(sessionId: string, key: string, value: JsonValue): Promise<boolean>;
|
|
167
|
-
/**
|
|
168
|
-
* Get session state value
|
|
169
|
-
*
|
|
170
|
-
* @param sessionId Session identifier
|
|
171
|
-
* @param key State key
|
|
172
|
-
* @returns State value or undefined
|
|
173
|
-
*/
|
|
174
|
-
getSessionState(sessionId: string, key: string): Promise<JsonValue | undefined>;
|
|
175
|
-
/**
|
|
176
|
-
* Get all active sessions
|
|
177
|
-
*
|
|
178
|
-
* @returns Array of active sessions
|
|
179
|
-
*/
|
|
180
|
-
getActiveSessions(): Promise<OrchestratorSession[]>;
|
|
181
|
-
/**
|
|
182
|
-
* Clean up expired sessions
|
|
183
|
-
*
|
|
184
|
-
* @returns Number of sessions cleaned
|
|
185
|
-
*/
|
|
186
|
-
cleanupSessions(): Promise<number>;
|
|
187
|
-
/**
|
|
188
|
-
* Get error history
|
|
189
|
-
*
|
|
190
|
-
* @param filter Optional filter criteria
|
|
191
|
-
* @returns Filtered error history
|
|
192
|
-
*/
|
|
193
|
-
getErrorHistory(filter?: Parameters<ErrorManager["getErrorHistory"]>[0]): import("./error-manager.js").ErrorEntry[];
|
|
194
|
-
/**
|
|
195
|
-
* Clear error history
|
|
196
|
-
*/
|
|
197
|
-
clearErrorHistory(): void;
|
|
198
|
-
/**
|
|
199
|
-
* Get recovery suggestion for last error
|
|
200
|
-
*
|
|
201
|
-
* @param sessionId Optional session ID to get last error from
|
|
202
|
-
* @returns Recovery suggestion or null
|
|
203
|
-
*/
|
|
204
|
-
getLastErrorRecovery(sessionId?: string): string | null;
|
|
205
|
-
/**
|
|
206
|
-
* Initialize health monitoring
|
|
207
|
-
*
|
|
208
|
-
* @param options Health monitor options
|
|
209
|
-
*/
|
|
210
|
-
initializeHealthMonitor(options?: HealthMonitorOptions): void;
|
|
211
|
-
/**
|
|
212
|
-
* Start health monitoring for all registered servers
|
|
213
|
-
*/
|
|
214
|
-
startHealthMonitoring(): void;
|
|
215
|
-
/**
|
|
216
|
-
* Stop health monitoring
|
|
217
|
-
*/
|
|
218
|
-
stopHealthMonitoring(): void;
|
|
219
|
-
/**
|
|
220
|
-
* Register recovery callback for a server
|
|
221
|
-
*
|
|
222
|
-
* @param serverId Server ID
|
|
223
|
-
* @param callback Recovery callback
|
|
224
|
-
*/
|
|
225
|
-
registerRecoveryCallback(serverId: string, callback: (serverId: string) => Promise<void>): void;
|
|
226
|
-
/**
|
|
227
|
-
* Get health status for all servers
|
|
228
|
-
*
|
|
229
|
-
* @returns Map of server health status
|
|
230
|
-
*/
|
|
231
|
-
getHealthStatus(): Map<any, any>;
|
|
232
|
-
/**
|
|
233
|
-
* Initialize transport manager for MCP connections
|
|
234
|
-
*
|
|
235
|
-
* @param options Transport manager options
|
|
236
|
-
*/
|
|
237
|
-
initializeTransportManager(options?: TransportManagerOptions): void;
|
|
238
|
-
/**
|
|
239
|
-
* Connect to MCP server using specified transport
|
|
240
|
-
*
|
|
241
|
-
* @param config Transport configuration
|
|
242
|
-
* @returns Connected MCP client
|
|
243
|
-
*/
|
|
244
|
-
connectTransport(config: TransportConfig): Promise<unknown>;
|
|
245
|
-
/**
|
|
246
|
-
* Disconnect from MCP server
|
|
247
|
-
*/
|
|
248
|
-
disconnectTransport(): Promise<void>;
|
|
249
|
-
/**
|
|
250
|
-
* Get transport connection status
|
|
251
|
-
*/
|
|
252
|
-
getTransportStatus(): import("./transport-manager.js").TransportStatus;
|
|
253
|
-
/**
|
|
254
|
-
* Check if transport is connected
|
|
255
|
-
*/
|
|
256
|
-
isTransportConnected(): boolean;
|
|
257
|
-
/**
|
|
258
|
-
* Execute parallel pipeline with dependency management
|
|
259
|
-
*
|
|
260
|
-
* @private
|
|
261
|
-
*/
|
|
262
|
-
private executeParallelPipeline;
|
|
263
|
-
/**
|
|
264
|
-
* Generate unique pipeline ID
|
|
265
|
-
*
|
|
266
|
-
* @private
|
|
267
|
-
*/
|
|
268
|
-
private generatePipelineId;
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
* Default orchestrator instance
|
|
272
|
-
* Ready-to-use orchestrator with pre-configured registry and context manager
|
|
273
|
-
*/
|
|
274
|
-
export declare const defaultOrchestrator: MCPOrchestrator;
|
|
275
|
-
/**
|
|
276
|
-
* Utility function to execute tool with default orchestrator
|
|
277
|
-
*
|
|
278
|
-
* @param toolName Tool name to execute
|
|
279
|
-
* @param params Tool parameters
|
|
280
|
-
* @param contextRequest Context creation request
|
|
281
|
-
* @param options Execution options
|
|
282
|
-
* @returns Tool execution result
|
|
283
|
-
*/
|
|
284
|
-
export declare function executeTool(toolName: string, params: JsonValue, contextRequest?: ContextRequest, options?: ToolExecutionOptions): Promise<ToolResult>;
|
|
285
|
-
/**
|
|
286
|
-
* Utility function to execute text generation pipeline
|
|
287
|
-
*
|
|
288
|
-
* @param prompt Text prompt for generation
|
|
289
|
-
* @param contextRequest Context creation request
|
|
290
|
-
* @param options Generation options
|
|
291
|
-
* @returns Text generation result
|
|
292
|
-
*/
|
|
293
|
-
export declare function executeTextPipeline(prompt: string, contextRequest?: ContextRequest, options?: UnknownRecord): Promise<TextPipelineResult>;
|
|
294
|
-
/**
|
|
295
|
-
* Utility function to execute pipeline with default orchestrator
|
|
296
|
-
*
|
|
297
|
-
* @param steps Pipeline steps
|
|
298
|
-
* @param contextRequest Context creation request
|
|
299
|
-
* @param options Pipeline options
|
|
300
|
-
* @returns Pipeline execution result
|
|
301
|
-
*/
|
|
302
|
-
export declare function executePipeline(steps: PipelineStep[], contextRequest?: ContextRequest, options?: PipelineOptions): Promise<PipelineResult>;
|