@muggleai/mcp 1.0.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/README.md +160 -0
- package/bin/muggle-mcp.js +2 -0
- package/dist/chunk-6DQWAMGJ.js +7626 -0
- package/dist/chunk-6DQWAMGJ.js.map +1 -0
- package/dist/cli/doctor.d.ts +8 -0
- package/dist/cli/doctor.d.ts.map +1 -0
- package/dist/cli/index.d.ts +9 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/login.d.ts +26 -0
- package/dist/cli/login.d.ts.map +1 -0
- package/dist/cli/main.d.ts +6 -0
- package/dist/cli/main.d.ts.map +1 -0
- package/dist/cli/serve.d.ts +20 -0
- package/dist/cli/serve.d.ts.map +1 -0
- package/dist/cli/setup.d.ts +16 -0
- package/dist/cli/setup.d.ts.map +1 -0
- package/dist/cli.js +305 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +36 -0
- package/dist/index.js.map +1 -0
- package/dist/local-qa/contracts/auth-schemas.d.ts +35 -0
- package/dist/local-qa/contracts/auth-schemas.d.ts.map +1 -0
- package/dist/local-qa/contracts/index.d.ts +7 -0
- package/dist/local-qa/contracts/index.d.ts.map +1 -0
- package/dist/local-qa/contracts/project-schemas.d.ts +1141 -0
- package/dist/local-qa/contracts/project-schemas.d.ts.map +1 -0
- package/dist/local-qa/contracts/session-schemas.d.ts +27 -0
- package/dist/local-qa/contracts/session-schemas.d.ts.map +1 -0
- package/dist/local-qa/index.d.ts +27 -0
- package/dist/local-qa/index.d.ts.map +1 -0
- package/dist/local-qa/services/auth-service.d.ts +79 -0
- package/dist/local-qa/services/auth-service.d.ts.map +1 -0
- package/dist/local-qa/services/execution-service.d.ts +55 -0
- package/dist/local-qa/services/execution-service.d.ts.map +1 -0
- package/dist/local-qa/services/index.d.ts +8 -0
- package/dist/local-qa/services/index.d.ts.map +1 -0
- package/dist/local-qa/services/project-storage-service.d.ts +262 -0
- package/dist/local-qa/services/project-storage-service.d.ts.map +1 -0
- package/dist/local-qa/services/storage-service.d.ts +166 -0
- package/dist/local-qa/services/storage-service.d.ts.map +1 -0
- package/dist/local-qa/tools/index.d.ts +5 -0
- package/dist/local-qa/tools/index.d.ts.map +1 -0
- package/dist/local-qa/tools/tool-registry.d.ts +18 -0
- package/dist/local-qa/tools/tool-registry.d.ts.map +1 -0
- package/dist/local-qa/types/auth-types.d.ts +97 -0
- package/dist/local-qa/types/auth-types.d.ts.map +1 -0
- package/dist/local-qa/types/config-types.d.ts +28 -0
- package/dist/local-qa/types/config-types.d.ts.map +1 -0
- package/dist/local-qa/types/enums.d.ts +141 -0
- package/dist/local-qa/types/enums.d.ts.map +1 -0
- package/dist/local-qa/types/index.d.ts +10 -0
- package/dist/local-qa/types/index.d.ts.map +1 -0
- package/dist/local-qa/types/project-types.d.ts +339 -0
- package/dist/local-qa/types/project-types.d.ts.map +1 -0
- package/dist/local-qa/types/storage-params.d.ts +544 -0
- package/dist/local-qa/types/storage-params.d.ts.map +1 -0
- package/dist/local-qa/types/tool-types.d.ts +38 -0
- package/dist/local-qa/types/tool-types.d.ts.map +1 -0
- package/dist/qa/contracts/index.d.ts +716 -0
- package/dist/qa/contracts/index.d.ts.map +1 -0
- package/dist/qa/index.d.ts +15 -0
- package/dist/qa/index.d.ts.map +1 -0
- package/dist/qa/tools/index.d.ts +5 -0
- package/dist/qa/tools/index.d.ts.map +1 -0
- package/dist/qa/tools/tool-registry.d.ts +22 -0
- package/dist/qa/tools/tool-registry.d.ts.map +1 -0
- package/dist/qa/types.d.ts +101 -0
- package/dist/qa/types.d.ts.map +1 -0
- package/dist/qa/upstream-client.d.ts +60 -0
- package/dist/qa/upstream-client.d.ts.map +1 -0
- package/dist/server/index.d.ts +6 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/mcp-server.d.ts +34 -0
- package/dist/server/mcp-server.d.ts.map +1 -0
- package/dist/server/stdio-server.d.ts +11 -0
- package/dist/server/stdio-server.d.ts.map +1 -0
- package/dist/shared/auth.d.ts +75 -0
- package/dist/shared/auth.d.ts.map +1 -0
- package/dist/shared/config.d.ts +41 -0
- package/dist/shared/config.d.ts.map +1 -0
- package/dist/shared/credentials.d.ts +48 -0
- package/dist/shared/credentials.d.ts.map +1 -0
- package/dist/shared/index.d.ts +10 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/logger.d.ts +21 -0
- package/dist/shared/logger.d.ts.map +1 -0
- package/dist/shared/open-browser.d.ts +27 -0
- package/dist/shared/open-browser.d.ts.map +1 -0
- package/dist/shared/types.d.ts +178 -0
- package/dist/shared/types.d.ts.map +1 -0
- package/package.json +75 -0
- package/scripts/postinstall.mjs +153 -0
|
@@ -0,0 +1,544 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Storage service parameter interfaces.
|
|
3
|
+
*/
|
|
4
|
+
import type { CloudMappingEntityType } from "./enums.js";
|
|
5
|
+
import type { ICloudIdMapping, ICloudSource, ILocalWorkflowFileAssociation, IUseCaseBreakdownItem } from "./project-types.js";
|
|
6
|
+
/**
|
|
7
|
+
* Create local project request.
|
|
8
|
+
*/
|
|
9
|
+
export interface ICreateLocalProjectRequest {
|
|
10
|
+
/** Project name. */
|
|
11
|
+
name: string;
|
|
12
|
+
/** Project description. */
|
|
13
|
+
description: string;
|
|
14
|
+
/** Target URL. */
|
|
15
|
+
url: string;
|
|
16
|
+
/** Original URL (optional). */
|
|
17
|
+
originalUrl?: string;
|
|
18
|
+
/** Cloud source (optional). */
|
|
19
|
+
cloudSource?: ICloudSource;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Update local project request.
|
|
23
|
+
*/
|
|
24
|
+
export interface IUpdateLocalProjectRequest {
|
|
25
|
+
/** Project ID. */
|
|
26
|
+
id: string;
|
|
27
|
+
/** New name (optional). */
|
|
28
|
+
name?: string;
|
|
29
|
+
/** New description (optional). */
|
|
30
|
+
description?: string;
|
|
31
|
+
/** New URL (optional). */
|
|
32
|
+
url?: string;
|
|
33
|
+
/** Original URL (optional). */
|
|
34
|
+
originalUrl?: string;
|
|
35
|
+
/** Cloud project ID (optional). */
|
|
36
|
+
cloudProjectId?: string;
|
|
37
|
+
/** Last published timestamp (optional). */
|
|
38
|
+
lastPublishedAt?: number;
|
|
39
|
+
/** Cloud source (optional). */
|
|
40
|
+
cloudSource?: ICloudSource;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Save local use case request.
|
|
44
|
+
*/
|
|
45
|
+
export interface ISaveLocalUseCaseRequest {
|
|
46
|
+
/** Project ID. */
|
|
47
|
+
projectId: string;
|
|
48
|
+
/** Use case title. */
|
|
49
|
+
title: string;
|
|
50
|
+
/** User story. */
|
|
51
|
+
userStory?: string;
|
|
52
|
+
/** Description. */
|
|
53
|
+
description?: string;
|
|
54
|
+
/** Breakdown items. */
|
|
55
|
+
breakdownItems?: IUseCaseBreakdownItem[];
|
|
56
|
+
/** Original URL. */
|
|
57
|
+
originalUrl?: string;
|
|
58
|
+
/** Cloud source. */
|
|
59
|
+
cloudSource?: ICloudSource;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Save local test case request.
|
|
63
|
+
*/
|
|
64
|
+
export interface ISaveLocalTestCaseRequest {
|
|
65
|
+
/** Project ID. */
|
|
66
|
+
projectId: string;
|
|
67
|
+
/** Use case ID. */
|
|
68
|
+
useCaseId: string;
|
|
69
|
+
/** Test case title. */
|
|
70
|
+
title: string;
|
|
71
|
+
/** Test case description. */
|
|
72
|
+
description: string;
|
|
73
|
+
/** Test goal. */
|
|
74
|
+
goal: string;
|
|
75
|
+
/** Precondition. */
|
|
76
|
+
precondition?: string;
|
|
77
|
+
/** Step-by-step instructions. */
|
|
78
|
+
instructions?: string;
|
|
79
|
+
/** Expected result. */
|
|
80
|
+
expectedResult: string;
|
|
81
|
+
/** Target URL. */
|
|
82
|
+
url: string;
|
|
83
|
+
/** Original URL. */
|
|
84
|
+
originalUrl?: string;
|
|
85
|
+
/** Cloud source. */
|
|
86
|
+
cloudSource?: ICloudSource;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Save local secret params.
|
|
90
|
+
*/
|
|
91
|
+
export interface ISaveLocalSecretParams {
|
|
92
|
+
/** Project ID. */
|
|
93
|
+
projectId: string;
|
|
94
|
+
/** Canonical secret name. */
|
|
95
|
+
secretName: string;
|
|
96
|
+
/** Secret value. */
|
|
97
|
+
value: string;
|
|
98
|
+
/** Description. */
|
|
99
|
+
description: string;
|
|
100
|
+
/** Source (user or agent). */
|
|
101
|
+
source?: "user" | "agent";
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Get local secret params.
|
|
105
|
+
*/
|
|
106
|
+
export interface IGetLocalSecretParams {
|
|
107
|
+
/** Project ID. */
|
|
108
|
+
projectId: string;
|
|
109
|
+
/** Secret ID. */
|
|
110
|
+
secretId: string;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Update local secret params.
|
|
114
|
+
*/
|
|
115
|
+
export interface IUpdateLocalSecretParams {
|
|
116
|
+
/** Project ID. */
|
|
117
|
+
projectId: string;
|
|
118
|
+
/** Secret ID. */
|
|
119
|
+
secretId: string;
|
|
120
|
+
/** Updates. */
|
|
121
|
+
updates: {
|
|
122
|
+
secretName?: string;
|
|
123
|
+
value?: string;
|
|
124
|
+
description?: string;
|
|
125
|
+
source?: "user" | "agent";
|
|
126
|
+
cloudSecretId?: string;
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Delete local secret params.
|
|
131
|
+
*/
|
|
132
|
+
export interface IDeleteLocalSecretParams {
|
|
133
|
+
/** Project ID. */
|
|
134
|
+
projectId: string;
|
|
135
|
+
/** Secret ID. */
|
|
136
|
+
secretId: string;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Save local workflow file params.
|
|
140
|
+
*/
|
|
141
|
+
export interface ISaveLocalWorkflowFileParams {
|
|
142
|
+
/** Project ID. */
|
|
143
|
+
projectId: string;
|
|
144
|
+
/** Source file path. */
|
|
145
|
+
sourceFilePath: string;
|
|
146
|
+
/** Description. */
|
|
147
|
+
description: string;
|
|
148
|
+
/** Tags. */
|
|
149
|
+
tags?: string[];
|
|
150
|
+
/** Associations. */
|
|
151
|
+
associations?: ILocalWorkflowFileAssociation[];
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Get local workflow file params.
|
|
155
|
+
*/
|
|
156
|
+
export interface IGetLocalWorkflowFileParams {
|
|
157
|
+
/** Project ID. */
|
|
158
|
+
projectId: string;
|
|
159
|
+
/** File ID. */
|
|
160
|
+
fileId: string;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Update local workflow file params.
|
|
164
|
+
*/
|
|
165
|
+
export interface IUpdateLocalWorkflowFileParams {
|
|
166
|
+
/** Project ID. */
|
|
167
|
+
projectId: string;
|
|
168
|
+
/** File ID. */
|
|
169
|
+
fileId: string;
|
|
170
|
+
/** Updates. */
|
|
171
|
+
updates: {
|
|
172
|
+
description?: string;
|
|
173
|
+
tags?: string[];
|
|
174
|
+
associations?: ILocalWorkflowFileAssociation[];
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Delete local workflow file params.
|
|
179
|
+
*/
|
|
180
|
+
export interface IDeleteLocalWorkflowFileParams {
|
|
181
|
+
/** Project ID. */
|
|
182
|
+
projectId: string;
|
|
183
|
+
/** File ID. */
|
|
184
|
+
fileId: string;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Resolve local workflow files params.
|
|
188
|
+
*/
|
|
189
|
+
export interface IResolveLocalWorkflowFilesParams {
|
|
190
|
+
/** Project ID. */
|
|
191
|
+
projectId: string;
|
|
192
|
+
/** Use case ID (optional). */
|
|
193
|
+
useCaseId?: string;
|
|
194
|
+
/** Test case ID (optional). */
|
|
195
|
+
testCaseId?: string;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Get local use case params.
|
|
199
|
+
*/
|
|
200
|
+
export interface IGetLocalUseCaseParams {
|
|
201
|
+
/** Project ID. */
|
|
202
|
+
projectId: string;
|
|
203
|
+
/** Use case ID. */
|
|
204
|
+
useCaseId: string;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Update local use case params.
|
|
208
|
+
*/
|
|
209
|
+
export interface IUpdateLocalUseCaseParams {
|
|
210
|
+
/** Project ID. */
|
|
211
|
+
projectId: string;
|
|
212
|
+
/** Use case ID. */
|
|
213
|
+
useCaseId: string;
|
|
214
|
+
/** Updates. */
|
|
215
|
+
updates: {
|
|
216
|
+
title?: string;
|
|
217
|
+
userStory?: string;
|
|
218
|
+
description?: string;
|
|
219
|
+
breakdownItems?: IUseCaseBreakdownItem[];
|
|
220
|
+
cloudUseCaseId?: string;
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Delete local use case params.
|
|
225
|
+
*/
|
|
226
|
+
export interface IDeleteLocalUseCaseParams {
|
|
227
|
+
/** Project ID. */
|
|
228
|
+
projectId: string;
|
|
229
|
+
/** Use case ID. */
|
|
230
|
+
useCaseId: string;
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Get local test case params.
|
|
234
|
+
*/
|
|
235
|
+
export interface IGetLocalTestCaseParams {
|
|
236
|
+
/** Project ID. */
|
|
237
|
+
projectId: string;
|
|
238
|
+
/** Test case ID. */
|
|
239
|
+
testCaseId: string;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* List local test cases params.
|
|
243
|
+
*/
|
|
244
|
+
export interface IListLocalTestCasesParams {
|
|
245
|
+
/** Project ID. */
|
|
246
|
+
projectId: string;
|
|
247
|
+
/** Use case ID (optional filter). */
|
|
248
|
+
useCaseId?: string;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Update local test case params.
|
|
252
|
+
*/
|
|
253
|
+
export interface IUpdateLocalTestCaseParams {
|
|
254
|
+
/** Project ID. */
|
|
255
|
+
projectId: string;
|
|
256
|
+
/** Test case ID. */
|
|
257
|
+
testCaseId: string;
|
|
258
|
+
/** Updates. */
|
|
259
|
+
updates: {
|
|
260
|
+
title?: string;
|
|
261
|
+
description?: string;
|
|
262
|
+
goal?: string;
|
|
263
|
+
precondition?: string;
|
|
264
|
+
instructions?: string;
|
|
265
|
+
expectedResult?: string;
|
|
266
|
+
url?: string;
|
|
267
|
+
cloudTestCaseId?: string;
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Delete local test case params.
|
|
272
|
+
*/
|
|
273
|
+
export interface IDeleteLocalTestCaseParams {
|
|
274
|
+
/** Project ID. */
|
|
275
|
+
projectId: string;
|
|
276
|
+
/** Test case ID. */
|
|
277
|
+
testCaseId: string;
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Create local test script params.
|
|
281
|
+
*/
|
|
282
|
+
export interface ICreateLocalTestScriptParams {
|
|
283
|
+
/** Project ID. */
|
|
284
|
+
projectId: string;
|
|
285
|
+
/** Use case ID. */
|
|
286
|
+
useCaseId: string;
|
|
287
|
+
/** Test case ID. */
|
|
288
|
+
testCaseId: string;
|
|
289
|
+
/** Target URL. */
|
|
290
|
+
url: string;
|
|
291
|
+
/** Test script name (optional). */
|
|
292
|
+
name?: string;
|
|
293
|
+
/** Test script ID (optional, for explicit ID). */
|
|
294
|
+
testScriptId?: string;
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Get local test script params.
|
|
298
|
+
*/
|
|
299
|
+
export interface IGetLocalTestScriptParams {
|
|
300
|
+
/** Project ID. */
|
|
301
|
+
projectId: string;
|
|
302
|
+
/** Test script ID. */
|
|
303
|
+
testScriptId: string;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Get local test script path params.
|
|
307
|
+
*/
|
|
308
|
+
export interface IGetLocalTestScriptPathParams {
|
|
309
|
+
/** Project ID. */
|
|
310
|
+
projectId: string;
|
|
311
|
+
/** Test script ID. */
|
|
312
|
+
testScriptId: string;
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* List local test scripts params.
|
|
316
|
+
*/
|
|
317
|
+
export interface IListLocalTestScriptsParams {
|
|
318
|
+
/** Project ID. */
|
|
319
|
+
projectId: string;
|
|
320
|
+
/** Test case ID (optional filter). */
|
|
321
|
+
testCaseId?: string;
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Update local test script params.
|
|
325
|
+
*/
|
|
326
|
+
export interface IUpdateLocalTestScriptParams {
|
|
327
|
+
/** Project ID. */
|
|
328
|
+
projectId: string;
|
|
329
|
+
/** Test script ID. */
|
|
330
|
+
testScriptId: string;
|
|
331
|
+
/** Updates. */
|
|
332
|
+
updates: Partial<{
|
|
333
|
+
name: string;
|
|
334
|
+
url: string;
|
|
335
|
+
goal: string;
|
|
336
|
+
description: string;
|
|
337
|
+
precondition: string;
|
|
338
|
+
expectedResult: string;
|
|
339
|
+
status: import("./enums.js").LocalTestScriptStatus;
|
|
340
|
+
actionScriptId: string;
|
|
341
|
+
actionScript: unknown[];
|
|
342
|
+
}>;
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Delete local test script params.
|
|
346
|
+
*/
|
|
347
|
+
export interface IDeleteLocalTestScriptParams {
|
|
348
|
+
/** Project ID. */
|
|
349
|
+
projectId: string;
|
|
350
|
+
/** Test script ID. */
|
|
351
|
+
testScriptId: string;
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Save local action script params.
|
|
355
|
+
*/
|
|
356
|
+
export interface ISaveLocalActionScriptParams {
|
|
357
|
+
/** Project ID. */
|
|
358
|
+
projectId: string;
|
|
359
|
+
/** Test script ID. */
|
|
360
|
+
testScriptId: string;
|
|
361
|
+
/** Action script data. */
|
|
362
|
+
actionScript: unknown;
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Save local test script screenshot params.
|
|
366
|
+
*/
|
|
367
|
+
export interface ISaveLocalTestScriptScreenshotParams {
|
|
368
|
+
/** Project ID. */
|
|
369
|
+
projectId: string;
|
|
370
|
+
/** Test script ID. */
|
|
371
|
+
testScriptId: string;
|
|
372
|
+
/** Filename. */
|
|
373
|
+
filename: string;
|
|
374
|
+
/** Screenshot data. */
|
|
375
|
+
data: Buffer;
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* Get local run result params.
|
|
379
|
+
*/
|
|
380
|
+
export interface IGetLocalRunResultParams {
|
|
381
|
+
/** Project ID. */
|
|
382
|
+
projectId: string;
|
|
383
|
+
/** Run ID. */
|
|
384
|
+
runId: string;
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Update local run result params.
|
|
388
|
+
*/
|
|
389
|
+
export interface IUpdateLocalRunResultParams {
|
|
390
|
+
/** Project ID. */
|
|
391
|
+
projectId: string;
|
|
392
|
+
/** Run ID. */
|
|
393
|
+
runId: string;
|
|
394
|
+
/** Updates. */
|
|
395
|
+
updates: Partial<{
|
|
396
|
+
status: import("./enums.js").LocalRunStatus;
|
|
397
|
+
completedAt: number;
|
|
398
|
+
executionTimeMs: number;
|
|
399
|
+
errorMessage: string;
|
|
400
|
+
localScreenshots: string[];
|
|
401
|
+
actionScriptResult: unknown;
|
|
402
|
+
}>;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Save local run screenshot params.
|
|
406
|
+
*/
|
|
407
|
+
export interface ISaveLocalRunScreenshotParams {
|
|
408
|
+
/** Project ID. */
|
|
409
|
+
projectId: string;
|
|
410
|
+
/** Run ID. */
|
|
411
|
+
runId: string;
|
|
412
|
+
/** Filename. */
|
|
413
|
+
filename: string;
|
|
414
|
+
/** Screenshot data. */
|
|
415
|
+
data: Buffer;
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Get local workflow run params.
|
|
419
|
+
*/
|
|
420
|
+
export interface IGetLocalWorkflowRunParams {
|
|
421
|
+
/** Project ID. */
|
|
422
|
+
projectId: string;
|
|
423
|
+
/** Workflow run ID. */
|
|
424
|
+
workflowRunId: string;
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* Update local workflow run params.
|
|
428
|
+
*/
|
|
429
|
+
export interface IUpdateLocalWorkflowRunParams {
|
|
430
|
+
/** Project ID. */
|
|
431
|
+
projectId: string;
|
|
432
|
+
/** Workflow run ID. */
|
|
433
|
+
workflowRunId: string;
|
|
434
|
+
/** Updates. */
|
|
435
|
+
updates: Partial<{
|
|
436
|
+
status: import("./enums.js").LocalWorkflowRunStatus;
|
|
437
|
+
progress: number;
|
|
438
|
+
finishedAt: number;
|
|
439
|
+
error: string;
|
|
440
|
+
studioReturnedResult: {
|
|
441
|
+
status?: string;
|
|
442
|
+
summary?: string;
|
|
443
|
+
error?: string;
|
|
444
|
+
};
|
|
445
|
+
}>;
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* Save cloud ID mapping params.
|
|
449
|
+
*/
|
|
450
|
+
export interface ISaveCloudIdMappingParams {
|
|
451
|
+
/** Project ID. */
|
|
452
|
+
projectId: string;
|
|
453
|
+
/** Mapping data. */
|
|
454
|
+
mapping: ICloudIdMapping;
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* Get cloud ID mapping params.
|
|
458
|
+
*/
|
|
459
|
+
export interface IGetCloudIdMappingParams {
|
|
460
|
+
/** Project ID. */
|
|
461
|
+
projectId: string;
|
|
462
|
+
/** Local ID. */
|
|
463
|
+
localId: string;
|
|
464
|
+
/** Entity type. */
|
|
465
|
+
entityType: CloudMappingEntityType;
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Update cloud mapping params.
|
|
469
|
+
*/
|
|
470
|
+
export interface IUpdateCloudMappingParams {
|
|
471
|
+
/** Local ID. */
|
|
472
|
+
localId: string;
|
|
473
|
+
/** Cloud ID. */
|
|
474
|
+
cloudId: string;
|
|
475
|
+
/** Entity type. */
|
|
476
|
+
entityType: string;
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Session metadata.
|
|
480
|
+
*/
|
|
481
|
+
export interface ISessionMetadata {
|
|
482
|
+
/** Session ID. */
|
|
483
|
+
sessionId: string;
|
|
484
|
+
/** Workflow run ID. */
|
|
485
|
+
workflowRunId: string;
|
|
486
|
+
/** Session status. */
|
|
487
|
+
status: string;
|
|
488
|
+
/** Start time (ISO string). */
|
|
489
|
+
startTime: string;
|
|
490
|
+
/** End time (ISO string). */
|
|
491
|
+
endTime?: string;
|
|
492
|
+
/** Target URL. */
|
|
493
|
+
targetUrl: string;
|
|
494
|
+
/** Test instructions. */
|
|
495
|
+
testInstructions?: string;
|
|
496
|
+
/** Duration in milliseconds. */
|
|
497
|
+
durationMs?: number;
|
|
498
|
+
/** Number of steps. */
|
|
499
|
+
stepsCount?: number;
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* Session summary.
|
|
503
|
+
*/
|
|
504
|
+
export interface ISessionSummary {
|
|
505
|
+
/** Session ID. */
|
|
506
|
+
sessionId: string;
|
|
507
|
+
/** Session status. */
|
|
508
|
+
status: string;
|
|
509
|
+
/** Start time (ISO string). */
|
|
510
|
+
startTime: string;
|
|
511
|
+
/** End time (ISO string). */
|
|
512
|
+
endTime?: string;
|
|
513
|
+
/** Target URL. */
|
|
514
|
+
targetUrl: string;
|
|
515
|
+
/** Duration in milliseconds. */
|
|
516
|
+
durationMs?: number;
|
|
517
|
+
/** Number of steps. */
|
|
518
|
+
stepsCount?: number;
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* Test step.
|
|
522
|
+
*/
|
|
523
|
+
export interface ITestStep {
|
|
524
|
+
/** Step number. */
|
|
525
|
+
stepNumber: number;
|
|
526
|
+
/** Action performed. */
|
|
527
|
+
action: string;
|
|
528
|
+
/** Target element. */
|
|
529
|
+
target?: string;
|
|
530
|
+
/** Result description. */
|
|
531
|
+
result: string;
|
|
532
|
+
/** Whether the step succeeded. */
|
|
533
|
+
success: boolean;
|
|
534
|
+
/** Screenshot path. */
|
|
535
|
+
screenshotPath?: string;
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* Display params (for test script formatting).
|
|
539
|
+
*/
|
|
540
|
+
export interface IDisplayParams {
|
|
541
|
+
/** Whether to show full action script. */
|
|
542
|
+
showFullActionScript?: boolean;
|
|
543
|
+
}
|
|
544
|
+
//# sourceMappingURL=storage-params.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-params.d.ts","sourceRoot":"","sources":["../../../src/local-qa/types/storage-params.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACZ,6BAA6B,EAC7B,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAM5B;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,2BAA2B;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,+BAA+B;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,YAAY,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,kBAAkB;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,2BAA2B;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0BAA0B;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mCAAmC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,2CAA2C;IAC3C,eAAe,CAAC,EAAE,MAAM,CAAC;I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AAM,CAAC;IACf,+BAA+B;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kBAAkB;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,gCAAgC;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uBAAuB;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,mBAAmB;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0BAA0B;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,uBAAuB;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,0CAA0C;IAC1C,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tool types for local QA module.
|
|
3
|
+
*/
|
|
4
|
+
import type { ZodSchema } from "zod";
|
|
5
|
+
/**
|
|
6
|
+
* MCP tool result.
|
|
7
|
+
*/
|
|
8
|
+
export interface IMcpToolResult {
|
|
9
|
+
/** Human-readable content. */
|
|
10
|
+
content: string;
|
|
11
|
+
/** Whether this is an error result. */
|
|
12
|
+
isError: boolean;
|
|
13
|
+
/** Structured data (optional). */
|
|
14
|
+
data?: unknown;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Tool execution context.
|
|
18
|
+
*/
|
|
19
|
+
export interface IToolExecutionContext {
|
|
20
|
+
/** Input parameters. */
|
|
21
|
+
input: unknown;
|
|
22
|
+
/** Correlation ID for tracing. */
|
|
23
|
+
correlationId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* MCP tool definition.
|
|
27
|
+
*/
|
|
28
|
+
export interface ILocalMcpTool {
|
|
29
|
+
/** Tool name. */
|
|
30
|
+
name: string;
|
|
31
|
+
/** Tool description. */
|
|
32
|
+
description: string;
|
|
33
|
+
/** Zod input schema. */
|
|
34
|
+
inputSchema: ZodSchema;
|
|
35
|
+
/** Tool execution function. */
|
|
36
|
+
execute: (context: IToolExecutionContext) => Promise<IMcpToolResult>;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=tool-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-types.d.ts","sourceRoot":"","sources":["../../../src/local-qa/types/tool-types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,8BAA8B;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,kCAAkC;IAClC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,wBAAwB;IACxB,KAAK,EAAE,OAAO,CAAC;IACf,kCAAkC;IAClC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,iBAAiB;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,wBAAwB;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,wBAAwB;IACxB,WAAW,EAAE,SAAS,CAAC;IACvB,+BAA+B;IAC/B,OAAO,EAAE,CAAC,OAAO,EAAE,qBAAqB,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;CACtE"}
|