@muggleai/mcp 1.0.19 → 1.0.21
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/bin/muggle-mcp.js +0 -0
- package/dist/{chunk-UKMTQHS2.js → chunk-DGEO3CP2.js} +3345 -2489
- package/dist/chunk-DGEO3CP2.js.map +1 -0
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/login.d.ts.map +1 -1
- package/dist/cli.js +15 -8
- package/dist/cli.js.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/local-qa/contracts/auth-schemas.d.ts +2 -2
- package/dist/local-qa/contracts/project-schemas.d.ts +66 -26
- package/dist/local-qa/contracts/project-schemas.d.ts.map +1 -1
- package/dist/local-qa/services/auth-service.d.ts +17 -0
- package/dist/local-qa/services/auth-service.d.ts.map +1 -1
- package/dist/local-qa/services/execution-service.d.ts.map +1 -1
- package/dist/local-qa/services/run-result-storage-service.d.ts +37 -0
- package/dist/local-qa/services/run-result-storage-service.d.ts.map +1 -1
- package/dist/local-qa/tools/tool-registry.d.ts.map +1 -1
- package/dist/qa/contracts/index.d.ts +394 -74
- package/dist/qa/contracts/index.d.ts.map +1 -1
- package/dist/qa/contracts/local-run-schemas.d.ts +123 -0
- package/dist/qa/contracts/local-run-schemas.d.ts.map +1 -0
- package/dist/qa/tools/tool-registry.d.ts.map +1 -1
- package/dist/shared/auth.d.ts +15 -6
- package/dist/shared/auth.d.ts.map +1 -1
- package/dist/shared/config.d.ts.map +1 -1
- package/dist/shared/credentials.d.ts +19 -10
- package/dist/shared/credentials.d.ts.map +1 -1
- package/dist/shared/types.d.ts +2 -0
- package/dist/shared/types.d.ts.map +1 -1
- package/package.json +3 -2
- package/scripts/postinstall.mjs +268 -9
- package/dist/chunk-UKMTQHS2.js.map +0 -1
|
@@ -9,11 +9,11 @@ export declare const AuthLoginInputSchema: z.ZodObject<{
|
|
|
9
9
|
waitForCompletion: z.ZodOptional<z.ZodBoolean>;
|
|
10
10
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
waitForCompletion?: boolean | undefined;
|
|
13
12
|
timeoutMs?: number | undefined;
|
|
14
|
-
}, {
|
|
15
13
|
waitForCompletion?: boolean | undefined;
|
|
14
|
+
}, {
|
|
16
15
|
timeoutMs?: number | undefined;
|
|
16
|
+
waitForCompletion?: boolean | undefined;
|
|
17
17
|
}>;
|
|
18
18
|
export type AuthLoginInput = z.infer<typeof AuthLoginInputSchema>;
|
|
19
19
|
/**
|
|
@@ -31,22 +31,30 @@ export declare const TestCaseDetailsSchema: z.ZodObject<{
|
|
|
31
31
|
instructions: z.ZodOptional<z.ZodString>;
|
|
32
32
|
/** Original cloud URL (for reference, replaced by localUrl). */
|
|
33
33
|
url: z.ZodOptional<z.ZodString>;
|
|
34
|
+
/** Cloud project ID (required for electron workflow context). */
|
|
35
|
+
projectId: z.ZodString;
|
|
36
|
+
/** Cloud use case ID (required for electron workflow context). */
|
|
37
|
+
useCaseId: z.ZodString;
|
|
34
38
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
title: string;
|
|
36
39
|
id: string;
|
|
40
|
+
projectId: string;
|
|
41
|
+
useCaseId: string;
|
|
37
42
|
goal: string;
|
|
43
|
+
title: string;
|
|
38
44
|
expectedResult: string;
|
|
39
45
|
url?: string | undefined;
|
|
40
|
-
instructions?: string | undefined;
|
|
41
46
|
precondition?: string | undefined;
|
|
47
|
+
instructions?: string | undefined;
|
|
42
48
|
}, {
|
|
43
|
-
title: string;
|
|
44
49
|
id: string;
|
|
50
|
+
projectId: string;
|
|
51
|
+
useCaseId: string;
|
|
45
52
|
goal: string;
|
|
53
|
+
title: string;
|
|
46
54
|
expectedResult: string;
|
|
47
55
|
url?: string | undefined;
|
|
48
|
-
instructions?: string | undefined;
|
|
49
56
|
precondition?: string | undefined;
|
|
57
|
+
instructions?: string | undefined;
|
|
50
58
|
}>;
|
|
51
59
|
export type TestCaseDetails = z.infer<typeof TestCaseDetailsSchema>;
|
|
52
60
|
/**
|
|
@@ -64,17 +72,25 @@ export declare const TestScriptDetailsSchema: z.ZodObject<{
|
|
|
64
72
|
actionScript: z.ZodArray<z.ZodUnknown, "many">;
|
|
65
73
|
/** Original cloud URL (for reference, replaced by localUrl). */
|
|
66
74
|
url: z.ZodOptional<z.ZodString>;
|
|
75
|
+
/** Cloud project ID (required for electron workflow context). */
|
|
76
|
+
projectId: z.ZodString;
|
|
77
|
+
/** Cloud use case ID (required for electron workflow context). */
|
|
78
|
+
useCaseId: z.ZodString;
|
|
67
79
|
}, "strip", z.ZodTypeAny, {
|
|
68
|
-
name: string;
|
|
69
80
|
id: string;
|
|
70
|
-
|
|
81
|
+
projectId: string;
|
|
82
|
+
useCaseId: string;
|
|
83
|
+
name: string;
|
|
71
84
|
actionScript: unknown[];
|
|
85
|
+
testCaseId: string;
|
|
72
86
|
url?: string | undefined;
|
|
73
87
|
}, {
|
|
74
|
-
name: string;
|
|
75
88
|
id: string;
|
|
76
|
-
|
|
89
|
+
projectId: string;
|
|
90
|
+
useCaseId: string;
|
|
91
|
+
name: string;
|
|
77
92
|
actionScript: unknown[];
|
|
93
|
+
testCaseId: string;
|
|
78
94
|
url?: string | undefined;
|
|
79
95
|
}>;
|
|
80
96
|
export type TestScriptDetails = z.infer<typeof TestScriptDetailsSchema>;
|
|
@@ -99,22 +115,30 @@ export declare const ExecuteTestGenerationInputSchema: z.ZodObject<{
|
|
|
99
115
|
instructions: z.ZodOptional<z.ZodString>;
|
|
100
116
|
/** Original cloud URL (for reference, replaced by localUrl). */
|
|
101
117
|
url: z.ZodOptional<z.ZodString>;
|
|
118
|
+
/** Cloud project ID (required for electron workflow context). */
|
|
119
|
+
projectId: z.ZodString;
|
|
120
|
+
/** Cloud use case ID (required for electron workflow context). */
|
|
121
|
+
useCaseId: z.ZodString;
|
|
102
122
|
}, "strip", z.ZodTypeAny, {
|
|
103
|
-
title: string;
|
|
104
123
|
id: string;
|
|
124
|
+
projectId: string;
|
|
125
|
+
useCaseId: string;
|
|
105
126
|
goal: string;
|
|
127
|
+
title: string;
|
|
106
128
|
expectedResult: string;
|
|
107
129
|
url?: string | undefined;
|
|
108
|
-
instructions?: string | undefined;
|
|
109
130
|
precondition?: string | undefined;
|
|
131
|
+
instructions?: string | undefined;
|
|
110
132
|
}, {
|
|
111
|
-
title: string;
|
|
112
133
|
id: string;
|
|
134
|
+
projectId: string;
|
|
135
|
+
useCaseId: string;
|
|
113
136
|
goal: string;
|
|
137
|
+
title: string;
|
|
114
138
|
expectedResult: string;
|
|
115
139
|
url?: string | undefined;
|
|
116
|
-
instructions?: string | undefined;
|
|
117
140
|
precondition?: string | undefined;
|
|
141
|
+
instructions?: string | undefined;
|
|
118
142
|
}>;
|
|
119
143
|
/** Local URL to test against. */
|
|
120
144
|
localUrl: z.ZodString;
|
|
@@ -125,26 +149,30 @@ export declare const ExecuteTestGenerationInputSchema: z.ZodObject<{
|
|
|
125
149
|
}, "strip", z.ZodTypeAny, {
|
|
126
150
|
localUrl: string;
|
|
127
151
|
testCase: {
|
|
128
|
-
title: string;
|
|
129
152
|
id: string;
|
|
153
|
+
projectId: string;
|
|
154
|
+
useCaseId: string;
|
|
130
155
|
goal: string;
|
|
156
|
+
title: string;
|
|
131
157
|
expectedResult: string;
|
|
132
158
|
url?: string | undefined;
|
|
133
|
-
instructions?: string | undefined;
|
|
134
159
|
precondition?: string | undefined;
|
|
160
|
+
instructions?: string | undefined;
|
|
135
161
|
};
|
|
136
162
|
approveElectronAppLaunch: boolean;
|
|
137
163
|
timeoutMs?: number | undefined;
|
|
138
164
|
}, {
|
|
139
165
|
localUrl: string;
|
|
140
166
|
testCase: {
|
|
141
|
-
title: string;
|
|
142
167
|
id: string;
|
|
168
|
+
projectId: string;
|
|
169
|
+
useCaseId: string;
|
|
143
170
|
goal: string;
|
|
171
|
+
title: string;
|
|
144
172
|
expectedResult: string;
|
|
145
173
|
url?: string | undefined;
|
|
146
|
-
instructions?: string | undefined;
|
|
147
174
|
precondition?: string | undefined;
|
|
175
|
+
instructions?: string | undefined;
|
|
148
176
|
};
|
|
149
177
|
approveElectronAppLaunch: boolean;
|
|
150
178
|
timeoutMs?: number | undefined;
|
|
@@ -167,17 +195,25 @@ export declare const ExecuteReplayInputSchema: z.ZodObject<{
|
|
|
167
195
|
actionScript: z.ZodArray<z.ZodUnknown, "many">;
|
|
168
196
|
/** Original cloud URL (for reference, replaced by localUrl). */
|
|
169
197
|
url: z.ZodOptional<z.ZodString>;
|
|
198
|
+
/** Cloud project ID (required for electron workflow context). */
|
|
199
|
+
projectId: z.ZodString;
|
|
200
|
+
/** Cloud use case ID (required for electron workflow context). */
|
|
201
|
+
useCaseId: z.ZodString;
|
|
170
202
|
}, "strip", z.ZodTypeAny, {
|
|
171
|
-
name: string;
|
|
172
203
|
id: string;
|
|
173
|
-
|
|
204
|
+
projectId: string;
|
|
205
|
+
useCaseId: string;
|
|
206
|
+
name: string;
|
|
174
207
|
actionScript: unknown[];
|
|
208
|
+
testCaseId: string;
|
|
175
209
|
url?: string | undefined;
|
|
176
210
|
}, {
|
|
177
|
-
name: string;
|
|
178
211
|
id: string;
|
|
179
|
-
|
|
212
|
+
projectId: string;
|
|
213
|
+
useCaseId: string;
|
|
214
|
+
name: string;
|
|
180
215
|
actionScript: unknown[];
|
|
216
|
+
testCaseId: string;
|
|
181
217
|
url?: string | undefined;
|
|
182
218
|
}>;
|
|
183
219
|
/** Local URL to test against. */
|
|
@@ -190,10 +226,12 @@ export declare const ExecuteReplayInputSchema: z.ZodObject<{
|
|
|
190
226
|
localUrl: string;
|
|
191
227
|
approveElectronAppLaunch: boolean;
|
|
192
228
|
testScript: {
|
|
193
|
-
name: string;
|
|
194
229
|
id: string;
|
|
195
|
-
|
|
230
|
+
projectId: string;
|
|
231
|
+
useCaseId: string;
|
|
232
|
+
name: string;
|
|
196
233
|
actionScript: unknown[];
|
|
234
|
+
testCaseId: string;
|
|
197
235
|
url?: string | undefined;
|
|
198
236
|
};
|
|
199
237
|
timeoutMs?: number | undefined;
|
|
@@ -201,10 +239,12 @@ export declare const ExecuteReplayInputSchema: z.ZodObject<{
|
|
|
201
239
|
localUrl: string;
|
|
202
240
|
approveElectronAppLaunch: boolean;
|
|
203
241
|
testScript: {
|
|
204
|
-
name: string;
|
|
205
242
|
id: string;
|
|
206
|
-
|
|
243
|
+
projectId: string;
|
|
244
|
+
useCaseId: string;
|
|
245
|
+
name: string;
|
|
207
246
|
actionScript: unknown[];
|
|
247
|
+
testCaseId: string;
|
|
208
248
|
url?: string | undefined;
|
|
209
249
|
};
|
|
210
250
|
timeoutMs?: number | undefined;
|
|
@@ -228,11 +268,11 @@ export declare const RunResultListInputSchema: z.ZodObject<{
|
|
|
228
268
|
cloudTestCaseId: z.ZodOptional<z.ZodString>;
|
|
229
269
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
230
270
|
}, "strip", z.ZodTypeAny, {
|
|
231
|
-
limit?: number | undefined;
|
|
232
271
|
cloudTestCaseId?: string | undefined;
|
|
233
|
-
}, {
|
|
234
272
|
limit?: number | undefined;
|
|
273
|
+
}, {
|
|
235
274
|
cloudTestCaseId?: string | undefined;
|
|
275
|
+
limit?: number | undefined;
|
|
236
276
|
}>;
|
|
237
277
|
export type RunResultListInput = z.infer<typeof RunResultListInputSchema>;
|
|
238
278
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-schemas.d.ts","sourceRoot":"","sources":["../../../src/local-qa/contracts/project-schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;GAGG;AACH,eAAO,MAAM,qBAAqB;IAChC,0BAA0B;;IAE1B,uBAAuB;;IAEvB,iBAAiB;;IAEjB,uBAAuB;;IAEvB,gCAAgC;;IAEhC,4CAA4C;;IAE5C,gEAAgE
|
|
1
|
+
{"version":3,"file":"project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**
|
|
63
63
|
* Get the current access token (if valid).
|
|
64
|
+
* Does not auto-refresh - use getValidAccessToken() for that.
|
|
64
65
|
*/
|
|
65
66
|
getAccessToken(): string | null;
|
|
67
|
+
/**
|
|
68
|
+
* Check if the access token is expired or about to expire.
|
|
69
|
+
* Uses a 5-minute buffer for safety.
|
|
70
|
+
*/
|
|
71
|
+
isAccessTokenExpired(): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Refresh the access token using the stored refresh token.
|
|
74
|
+
* @returns New access token or null if refresh failed.
|
|
75
|
+
*/
|
|
76
|
+
refreshAccessToken(): Promise<string | null>;
|
|
77
|
+
/**
|
|
78
|
+
* Get a valid access token, refreshing if necessary.
|
|
79
|
+
* This is the preferred method for getting an access token for API calls.
|
|
80
|
+
* @returns Valid access token or null if not authenticated or refresh failed.
|
|
81
|
+
*/
|
|
82
|
+
getValidAccessToken(): Promise<string | null>;
|
|
66
83
|
/**
|
|
67
84
|
* Clear stored authentication (logout).
|
|
68
85
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-service.d.ts","sourceRoot":"","sources":["../../../src/local-qa/services/auth-service.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,KAAK,EACV,WAAW,EACX,qBAAqB,EACrB,mBAAmB,EACnB,WAAW,EAEZ,MAAM,mBAAmB,CAAC;AAM3B;;GAEG;AACH,qBAAa,WAAW;IACtB,6BAA6B;IAC7B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;IAEtC,4CAA4C;IAC5C,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAS;IAE/C;;OAEG;;IAUH;;OAEG;IACH,aAAa,IAAI,WAAW;IA4B5B;;OAEG;IACG,mBAAmB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IA6EzD;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAoB9B;;OAEG;IACH,oBAAoB,IAAI,MAAM,GAAG,IAAI;IAkCrC;;OAEG;IACH,OAAO,CA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O,CAAC,qBAAqB,CAAC;IAiClC;;OAEG;YACW,WAAW;IA8BzB;;OAEG;YACW,SAAS;IA+BvB;;OAEG;IACH,cAAc,IAAI,WAAW,GAAG,IAAI;IAkBpC;;;OAGG;IACH,cAAc,IAAI,MAAM,GAAG,IAAI;IAiB/B;;;OAGG;IACH,oBAAoB,IAAI,OAAO;IAc/B;;;OAGG;IACG,kBAAkB,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IA6ElD;;;;OAIG;IACG,mBAAmB,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IA2CnD;;OAEG;IACH,MAAM,IAAI,OAAO;CAmBlB;AAKD;;GAEG;AACH,wBAAgB,cAAc,IAAI,WAAW,CAG5C;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAEvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-service.d.ts","sourceRoot":"","sources":["../../../src/local-qa/services/execution-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;
|
|
1
|
+
{"version":3,"file":"execution-service.d.ts","sourceRoot":"","sources":["../../../src/local-qa/services/execution-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AASH,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAG1F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAwCvE;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,cAAc;IACd,EAAE,EAAE,MAAM,CAAC;IACX,sBAAsB;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB;IAClB,MAAM,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC5B,4BAA4B;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAkeD;;;;;;;;;;GAUG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE;IAClD,QAAQ,EAAE,eAAe,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,eAAe,CAAC,CAyK3B;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,aAAa,CAAC,MAAM,EAAE;IAC1C,UAAU,EAAE,iBAAiB,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,eAAe,CAAC,CAmI3B;AAmCD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAsBlE;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC,CAKxF"}
|
|
@@ -16,6 +16,27 @@ export type RunResultStatus = "pending" | "running" | "passed" | "failed" | "can
|
|
|
16
16
|
* Run result type.
|
|
17
17
|
*/
|
|
18
18
|
export type RunResultType = "generation" | "replay";
|
|
19
|
+
/**
|
|
20
|
+
* Local execution context captured during local run execution.
|
|
21
|
+
*/
|
|
22
|
+
export interface ILocalExecutionContext {
|
|
23
|
+
/** URL executed locally (typically localhost). */
|
|
24
|
+
originalUrl: string;
|
|
25
|
+
/** Cloud production URL associated with the test case/script. */
|
|
26
|
+
productionUrl: string;
|
|
27
|
+
/** User ID who ran the local execution. */
|
|
28
|
+
runByUserId: string;
|
|
29
|
+
/** Machine hostname for the local execution environment. */
|
|
30
|
+
machineHostname?: string;
|
|
31
|
+
/** OS information for local execution environment. */
|
|
32
|
+
osInfo?: string;
|
|
33
|
+
/** Electron app version used for local execution. */
|
|
34
|
+
electronAppVersion?: string;
|
|
35
|
+
/** MCP server version used for local execution. */
|
|
36
|
+
mcpServerVersion?: string;
|
|
37
|
+
/** Local execution completion timestamp (epoch ms). */
|
|
38
|
+
localExecutionCompletedAt?: number;
|
|
39
|
+
}
|
|
19
40
|
/**
|
|
20
41
|
* Run result record.
|
|
21
42
|
*/
|
|
@@ -28,10 +49,20 @@ export interface IRunResult {
|
|
|
28
49
|
status: RunResultStatus;
|
|
29
50
|
/** Cloud test case ID. */
|
|
30
51
|
cloudTestCaseId: string;
|
|
52
|
+
/** Cloud project ID. */
|
|
53
|
+
projectId: string;
|
|
54
|
+
/** Cloud use case ID. */
|
|
55
|
+
useCaseId: string;
|
|
31
56
|
/** Local URL used for testing. */
|
|
32
57
|
localUrl: string;
|
|
58
|
+
/** Cloud production URL for the same test. */
|
|
59
|
+
productionUrl: string;
|
|
60
|
+
/** Local execution context details. */
|
|
61
|
+
localExecutionContext: ILocalExecutionContext;
|
|
33
62
|
/** Associated test script ID (if generated). */
|
|
34
63
|
testScriptId?: string;
|
|
64
|
+
/** Path to run artifacts directory (action script, screenshots, results). */
|
|
65
|
+
artifactsDir?: string;
|
|
35
66
|
/** Execution time in ms. */
|
|
36
67
|
executionTimeMs?: number;
|
|
37
68
|
/** Error message if failed. */
|
|
@@ -40,6 +71,8 @@ export interface IRunResult {
|
|
|
40
71
|
createdAt: string;
|
|
41
72
|
/** Updated timestamp. */
|
|
42
73
|
updatedAt: string;
|
|
74
|
+
/** Studio returned result (populated by electron-app after execution). */
|
|
75
|
+
studioReturnedResult?: unknown;
|
|
43
76
|
}
|
|
44
77
|
/**
|
|
45
78
|
* Test script status.
|
|
@@ -101,7 +134,11 @@ export declare class RunResultStorageService {
|
|
|
101
134
|
createRunResult(params: {
|
|
102
135
|
runType: RunResultType;
|
|
103
136
|
cloudTestCaseId: string;
|
|
137
|
+
projectId: string;
|
|
138
|
+
useCaseId: string;
|
|
104
139
|
localUrl: string;
|
|
140
|
+
productionUrl: string;
|
|
141
|
+
localExecutionContext: ILocalExecutionContext;
|
|
105
142
|
}): IRunResult;
|
|
106
143
|
/**
|
|
107
144
|
* Update a run result.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-result-storage-service.d.ts","sourceRoot":"","sources":["../../../src/local-qa/services/run-result-storage-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAeH;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,CAAC;AAExF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,QAAQ,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,qBAAqB;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB;IAChB,OAAO,EAAE,aAAa,CAAC;IACvB,kBAAkB;IAClB,MAAM,EAAE,eAAe,CAAC;IACxB,0BAA0B;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,kCAAkC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4BAA4B;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yBAAyB;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,yBAAyB;IACzB,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"run-result-storage-service.d.ts","sourceRoot":"","sources":["../../../src/local-qa/services/run-result-storage-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAeH;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,CAAC;AAExF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,QAAQ,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,kDAAkD;IAClD,WAAW,EAAE,MAAM,CAAC;IACpB,iEAAiE;IACjE,aA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E,OAAO,CAAC,UAAU,CAAC,GAAG,UAAU,GAAG,SAAS;IAoBpF;;OAEG;IACH,eAAe,IAAI,gBAAgB,EAAE;IAqBrC;;OAEG;IACH,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;IAcjE;;OAEG;IACH,cAAc,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI;IAK9C;;OAEG;IACH,gBAAgB,CAAC,MAAM,EAAE;QACvB,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,eAAe,EAAE,MAAM,CAAC;QACxB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,gBAAgB;IAmBpB;;OAEG;IACH,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,gBAAgB,GAAG,SAAS;CAezG;AAQD;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,uBAAuB,CAKpE;AAED;;GAEG;AACH,wBAAgB,4BAA4B,IAAI,IAAI,CAEnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-registry.d.ts","sourceRoot":"","sources":["../../../src/local-qa/tools/tool-registry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"tool-registry.d.ts","sourceRoot":"","sources":["../../../src/local-qa/tools/tool-registry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AA+kBvE;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,aAAa,EAgB1C,CAAC;AASF;;GAEG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAE/D;AAED;;GAEG;AACH,wBAAsB,WAAW,CAC/B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,EACd,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,cAAc,CAAC,CAWzB"}
|