@inspectr/mcplab 1.25.0 → 1.26.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/dist/app/assets/index-WORUf0Lp.js +258 -0
- package/dist/app/assets/index-jX47Pkmh.css +1 -0
- package/dist/app/index.html +2 -2
- package/dist/app-server/copilotkit-telemetry.d.ts +6 -0
- package/dist/app-server/copilotkit-telemetry.d.ts.map +1 -0
- package/dist/app-server/copilotkit-telemetry.js +8 -0
- package/dist/app-server/copilotkit-telemetry.js.map +1 -0
- package/dist/app-server/dev-mcp.d.ts +2 -5
- package/dist/app-server/global-copilot-domain.d.ts +30 -0
- package/dist/app-server/global-copilot-domain.d.ts.map +1 -0
- package/dist/app-server/global-copilot-domain.js +106 -0
- package/dist/app-server/global-copilot-domain.js.map +1 -0
- package/dist/app-server/global-copilot-mastra-route.d.ts +2 -0
- package/dist/app-server/global-copilot-mastra-route.d.ts.map +1 -0
- package/dist/app-server/global-copilot-mastra-route.js +5 -0
- package/dist/app-server/global-copilot-mastra-route.js.map +1 -0
- package/dist/app-server/global-copilot-mastra-runtime.d.ts +9 -0
- package/dist/app-server/global-copilot-mastra-runtime.d.ts.map +1 -0
- package/dist/app-server/global-copilot-mastra-runtime.js +61 -0
- package/dist/app-server/global-copilot-mastra-runtime.js.map +1 -0
- package/dist/app-server/global-copilot-mastra-storage.d.ts +8 -0
- package/dist/app-server/global-copilot-mastra-storage.d.ts.map +1 -0
- package/dist/app-server/global-copilot-mastra-storage.js +26 -0
- package/dist/app-server/global-copilot-mastra-storage.js.map +1 -0
- package/dist/app-server/global-copilot-mastra-threads.d.ts +5 -0
- package/dist/app-server/global-copilot-mastra-threads.d.ts.map +1 -0
- package/dist/app-server/global-copilot-mastra-threads.js +21 -0
- package/dist/app-server/global-copilot-mastra-threads.js.map +1 -0
- package/dist/app-server/global-copilot-mastra-tools.d.ts +50 -0
- package/dist/app-server/global-copilot-mastra-tools.d.ts.map +1 -0
- package/dist/app-server/global-copilot-mastra-tools.js +175 -0
- package/dist/app-server/global-copilot-mastra-tools.js.map +1 -0
- package/dist/app-server/global-copilot-mastra.d.ts +44 -0
- package/dist/app-server/global-copilot-mastra.d.ts.map +1 -0
- package/dist/app-server/global-copilot-mastra.js +198 -0
- package/dist/app-server/global-copilot-mastra.js.map +1 -0
- package/dist/app-server/global-copilot-memory.d.ts +70 -0
- package/dist/app-server/global-copilot-memory.d.ts.map +1 -0
- package/dist/app-server/global-copilot-memory.js +119 -0
- package/dist/app-server/global-copilot-memory.js.map +1 -0
- package/dist/app-server/global-copilot-threads.d.ts +14 -0
- package/dist/app-server/global-copilot-threads.d.ts.map +1 -0
- package/dist/app-server/global-copilot-threads.js +74 -0
- package/dist/app-server/global-copilot-threads.js.map +1 -0
- package/dist/app-server/oauth-debugger-domain.d.ts +183 -203
- package/dist/app-server/oauth-debugger-domain.d.ts.map +1 -1
- package/dist/app-server/oauth-debugger-domain.js +38 -21
- package/dist/app-server/oauth-debugger-domain.js.map +1 -1
- package/dist/app-server/result-assistant-domain.d.ts +65 -81
- package/dist/app-server/scenario-assistant-domain.d.ts +127 -153
- package/dist/app-server/settings-store.d.ts +4 -4
- package/dist/app-server/store-utils.d.ts +1 -1
- package/dist/app-server/types.d.ts +25 -25
- package/package.json +1 -1
- package/dist/app/assets/index-DgUUu84k.js +0 -258
- package/dist/app/assets/index-ICO1prXk.css +0 -1
|
@@ -5,177 +5,151 @@ import type { AssistantSseEvent } from './assistant-events.js';
|
|
|
5
5
|
import { readLibraries } from './libraries-store.js';
|
|
6
6
|
export { truncateJson } from './assistant-common.js';
|
|
7
7
|
interface ScenarioAssistantContextInput {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
scenario: {
|
|
9
|
+
id: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
prompt: string;
|
|
12
|
+
serverNames: string[];
|
|
13
|
+
evalRules: Array<{
|
|
14
|
+
type: string;
|
|
15
|
+
value?: string;
|
|
16
|
+
sequence?: string[];
|
|
17
|
+
path?: string;
|
|
18
|
+
equals?: string | number | boolean;
|
|
19
|
+
label?: string;
|
|
20
|
+
prompt?: string;
|
|
21
|
+
}>;
|
|
22
|
+
extractRules: Array<{
|
|
23
|
+
name: string;
|
|
24
|
+
pattern: string;
|
|
25
|
+
}>;
|
|
26
|
+
};
|
|
27
|
+
availableServers?: Array<{
|
|
28
|
+
name: string;
|
|
29
|
+
url?: string;
|
|
21
30
|
}>;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
31
|
+
availableAgents?: Array<{
|
|
32
|
+
name: string;
|
|
33
|
+
provider: string;
|
|
34
|
+
model: string;
|
|
25
35
|
}>;
|
|
26
|
-
};
|
|
27
|
-
availableServers?: Array<{
|
|
28
|
-
name: string;
|
|
29
|
-
url?: string;
|
|
30
|
-
}>;
|
|
31
|
-
availableAgents?: Array<{
|
|
32
|
-
name: string;
|
|
33
|
-
provider: string;
|
|
34
|
-
model: string;
|
|
35
|
-
}>;
|
|
36
36
|
}
|
|
37
37
|
interface ScenarioAssistantSuggestionBundle {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
38
|
+
prompt?: {
|
|
39
|
+
replacement: string;
|
|
40
|
+
rationale?: string;
|
|
41
|
+
};
|
|
42
|
+
evalRules?: {
|
|
43
|
+
replacement: Array<{
|
|
44
|
+
type: string;
|
|
45
|
+
value?: string;
|
|
46
|
+
sequence?: string[];
|
|
47
|
+
path?: string;
|
|
48
|
+
equals?: string | number | boolean;
|
|
49
|
+
label?: string;
|
|
50
|
+
prompt?: string;
|
|
51
|
+
}>;
|
|
52
|
+
rationale?: string;
|
|
53
|
+
};
|
|
54
|
+
extractRules?: {
|
|
55
|
+
replacement: Array<{
|
|
56
|
+
name: string;
|
|
57
|
+
pattern: string;
|
|
58
|
+
}>;
|
|
59
|
+
rationale?: string;
|
|
60
|
+
};
|
|
61
|
+
notes?: string[];
|
|
62
62
|
}
|
|
63
63
|
interface ScenarioAssistantEvalRuleSuggestion {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
64
|
+
type: string;
|
|
65
|
+
value?: string;
|
|
66
|
+
sequence?: string[];
|
|
67
|
+
path?: string;
|
|
68
|
+
equals?: string | number | boolean;
|
|
69
|
+
label?: string;
|
|
70
|
+
prompt?: string;
|
|
71
71
|
}
|
|
72
72
|
interface AssistantPendingToolCall {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
73
|
+
id: string;
|
|
74
|
+
server: string;
|
|
75
|
+
tool: string;
|
|
76
|
+
publicToolName: string;
|
|
77
|
+
arguments: unknown;
|
|
78
|
+
status: 'pending' | 'approved' | 'denied' | 'error';
|
|
79
|
+
createdAt: string;
|
|
80
|
+
resultPreview?: string;
|
|
81
|
+
error?: string;
|
|
82
82
|
}
|
|
83
83
|
interface AssistantChatMessage {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
84
|
+
id: string;
|
|
85
|
+
role: 'user' | 'assistant' | 'tool' | 'system';
|
|
86
|
+
text: string;
|
|
87
|
+
createdAt: string;
|
|
88
|
+
suggestions?: ScenarioAssistantSuggestionBundle;
|
|
89
|
+
pendingToolCallId?: string;
|
|
90
|
+
pendingToolCallIds?: string[];
|
|
91
|
+
toolRequestServer?: string;
|
|
92
|
+
toolRequestName?: string;
|
|
93
|
+
toolRequestPublicName?: string;
|
|
94
94
|
}
|
|
95
95
|
export interface ScenarioAssistantSession {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
systemPromptCache?: string;
|
|
117
|
-
events: AssistantSseEvent[];
|
|
118
|
-
clients: Set<ServerResponse>;
|
|
96
|
+
id: string;
|
|
97
|
+
createdAt: number;
|
|
98
|
+
lastTouchedAt: number;
|
|
99
|
+
configPath?: string;
|
|
100
|
+
selectedAssistantAgentName: string;
|
|
101
|
+
context: ScenarioAssistantContextInput;
|
|
102
|
+
agentConfig: AgentConfig;
|
|
103
|
+
mcp: McpClientManager;
|
|
104
|
+
tools: ToolDef[];
|
|
105
|
+
toolPublicMap: Map<string, {
|
|
106
|
+
server: string;
|
|
107
|
+
tool: string;
|
|
108
|
+
}>;
|
|
109
|
+
pendingToolCalls: AssistantPendingToolCall[];
|
|
110
|
+
chatMessages: AssistantChatMessage[];
|
|
111
|
+
llmMessages: LlmMessage[];
|
|
112
|
+
warnings: string[];
|
|
113
|
+
systemPromptCache?: string;
|
|
114
|
+
events: AssistantSseEvent[];
|
|
115
|
+
clients: Set<ServerResponse>;
|
|
119
116
|
}
|
|
120
|
-
export declare function cleanupAssistantSessions(
|
|
121
|
-
sessions: Map<string, ScenarioAssistantSession>,
|
|
122
|
-
now?: number
|
|
123
|
-
): void;
|
|
117
|
+
export declare function cleanupAssistantSessions(sessions: Map<string, ScenarioAssistantSession>, now?: number): void;
|
|
124
118
|
export declare function touchAssistantSession(session: ScenarioAssistantSession): void;
|
|
125
119
|
export declare function assistantSessionView(session: ScenarioAssistantSession): {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
120
|
+
id: string;
|
|
121
|
+
createdAt: string;
|
|
122
|
+
updatedAt: string;
|
|
123
|
+
selectedAssistantAgentName: string;
|
|
124
|
+
model: string;
|
|
125
|
+
provider: "openai" | "anthropic" | "azure_openai";
|
|
126
|
+
warnings: string[];
|
|
127
|
+
toolsLoaded: number;
|
|
128
|
+
toolServers: string[];
|
|
129
|
+
messages: AssistantChatMessage[];
|
|
130
|
+
pendingToolCalls: AssistantPendingToolCall[];
|
|
137
131
|
};
|
|
138
|
-
export declare function preloadAssistantTools(
|
|
139
|
-
session: ScenarioAssistantSession,
|
|
140
|
-
serversByName: Record<string, EvalConfig['servers'][string]>,
|
|
141
|
-
selectedServerNames: string[],
|
|
142
|
-
options?: {
|
|
132
|
+
export declare function preloadAssistantTools(session: ScenarioAssistantSession, serversByName: Record<string, EvalConfig['servers'][string]>, selectedServerNames: string[], options?: {
|
|
143
133
|
serverAuthHeaders?: Record<string, Record<string, string>>;
|
|
144
|
-
|
|
145
|
-
):
|
|
146
|
-
export declare function
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
type: 'assistant_message' | 'tool_call_request';
|
|
156
|
-
text: string;
|
|
157
|
-
suggestions?: ScenarioAssistantSuggestionBundle;
|
|
158
|
-
pendingToolCall?: AssistantPendingToolCall;
|
|
159
|
-
pendingToolCalls?: AssistantPendingToolCall[];
|
|
160
|
-
};
|
|
134
|
+
}): Promise<void>;
|
|
135
|
+
export declare function normalizeScenarioAssistantEvalRules(replacement: ScenarioAssistantEvalRuleSuggestion[]): ScenarioAssistantEvalRuleSuggestion[];
|
|
136
|
+
export declare function continueAssistantTurn(session: ScenarioAssistantSession, signal?: AbortSignal): Promise<{
|
|
137
|
+
session: ReturnType<typeof assistantSessionView>;
|
|
138
|
+
response: {
|
|
139
|
+
type: 'assistant_message' | 'tool_call_request';
|
|
140
|
+
text: string;
|
|
141
|
+
suggestions?: ScenarioAssistantSuggestionBundle;
|
|
142
|
+
pendingToolCall?: AssistantPendingToolCall;
|
|
143
|
+
pendingToolCalls?: AssistantPendingToolCall[];
|
|
144
|
+
};
|
|
161
145
|
}>;
|
|
162
|
-
export declare function executeAssistantToolCall(
|
|
163
|
-
session: ScenarioAssistantSession,
|
|
164
|
-
pending: AssistantPendingToolCall,
|
|
165
|
-
signal?: AbortSignal
|
|
166
|
-
): Promise<unknown>;
|
|
146
|
+
export declare function executeAssistantToolCall(session: ScenarioAssistantSession, pending: AssistantPendingToolCall, signal?: AbortSignal): Promise<unknown>;
|
|
167
147
|
export declare function summarizeToolResultForAssistant(result: unknown): string;
|
|
168
|
-
export declare function resolveAssistantAgentFromConfig(
|
|
169
|
-
|
|
170
|
-
selectedAssistantAgentName: string
|
|
171
|
-
): AgentConfig;
|
|
172
|
-
export declare function resolveAssistantAgentFromLibraries(
|
|
173
|
-
libraries: ReturnType<typeof readLibraries>,
|
|
174
|
-
selectedAssistantAgentName: string
|
|
175
|
-
): AgentConfig;
|
|
148
|
+
export declare function resolveAssistantAgentFromConfig(config: EvalConfig, selectedAssistantAgentName: string): AgentConfig;
|
|
149
|
+
export declare function resolveAssistantAgentFromLibraries(libraries: ReturnType<typeof readLibraries>, selectedAssistantAgentName: string): AgentConfig;
|
|
176
150
|
export declare function pickDefaultAssistantAgentName(params: {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
151
|
+
requested?: string;
|
|
152
|
+
settingsDefault?: string;
|
|
153
|
+
agentNames: string[];
|
|
180
154
|
}): string;
|
|
181
|
-
//# sourceMappingURL=scenario-assistant-domain.d.ts.map
|
|
155
|
+
//# sourceMappingURL=scenario-assistant-domain.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { AppSettings } from './types.js';
|
|
2
2
|
interface AppSettingsOverrides {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
scenario_assistant_agent_name?: string;
|
|
4
|
+
evaluation_judge_agent_name?: string;
|
|
5
|
+
default_queue_workers?: unknown;
|
|
6
6
|
}
|
|
7
7
|
export declare function normalizeQueueWorkerCount(value: unknown): number;
|
|
8
8
|
export declare function loadWorkspaceSettingsOverrides(librariesDir: string): AppSettingsOverrides;
|
|
9
9
|
export declare function applySettingsOverrides(settings: AppSettings): void;
|
|
10
10
|
export declare function persistSettingsOverrides(settings: AppSettings): void;
|
|
11
11
|
export {};
|
|
12
|
-
//# sourceMappingURL=settings-store.d.ts.map
|
|
12
|
+
//# sourceMappingURL=settings-store.d.ts.map
|
|
@@ -2,4 +2,4 @@ export declare function ensureInsideRoot(rootDir: string, candidatePath: string)
|
|
|
2
2
|
export declare function encodeEvalId(absPath: string, rootDir: string): string;
|
|
3
3
|
export declare function decodeEvalId(id: string, rootDir: string): string;
|
|
4
4
|
export declare function safeFileName(name: string): string;
|
|
5
|
-
//# sourceMappingURL=store-utils.d.ts.map
|
|
5
|
+
//# sourceMappingURL=store-utils.d.ts.map
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import type { HealthMcpConnectionInfo } from '@inspectr/mcplab-core';
|
|
2
2
|
export type { HealthMcpConnectionInfo };
|
|
3
3
|
export interface AppServerOptions {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
host: string;
|
|
5
|
+
port: number;
|
|
6
|
+
evalsDir: string;
|
|
7
|
+
runsDir: string;
|
|
8
|
+
toolAnalysisResultsDir: string;
|
|
9
|
+
librariesDir: string;
|
|
10
|
+
dev: boolean;
|
|
11
|
+
open: boolean;
|
|
12
12
|
}
|
|
13
13
|
export interface AppSettings {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
workspaceRoot: string;
|
|
15
|
+
evalsDir: string;
|
|
16
|
+
runsDir: string;
|
|
17
|
+
toolAnalysisResultsDir: string;
|
|
18
|
+
librariesDir: string;
|
|
19
|
+
defaultQueueWorkers: number;
|
|
20
|
+
scenarioAssistantAgentName?: string;
|
|
21
|
+
evaluationJudgeAgentName?: string;
|
|
22
22
|
}
|
|
23
23
|
export interface HealthResponse {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
ok: boolean;
|
|
25
|
+
version: string;
|
|
26
|
+
mcp: HealthMcpConnectionInfo;
|
|
27
27
|
}
|
|
28
28
|
export interface DevMcpServerRuntime {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
host: string;
|
|
30
|
+
port: number;
|
|
31
|
+
path: string;
|
|
32
|
+
targetBaseUrl: string;
|
|
33
|
+
stop: () => void;
|
|
34
34
|
}
|
|
35
|
-
//# sourceMappingURL=types.d.ts.map
|
|
35
|
+
//# sourceMappingURL=types.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inspectr/mcplab",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.0",
|
|
4
4
|
"description": "MCPLab - Test and evaluate MCP servers with LLMs — run evals, compare agents and launch the MCPLab web app",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://mcplab.inspectr.dev",
|