@muggleai/mcp 1.0.20 → 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-HOXCZIJC.js → chunk-DGEO3CP2.js} +984 -266
- package/dist/chunk-DGEO3CP2.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/index.js +2 -2
- package/dist/local-qa/contracts/project-schemas.d.ts +40 -0
- package/dist/local-qa/contracts/project-schemas.d.ts.map +1 -1
- 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 +361 -41
- 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.map +1 -1
- package/dist/shared/config.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-HOXCZIJC.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { getLogger, getConfig, getQaTools, registerTools, getLocalQaTools, createUnifiedMcpServer, startStdioServer, getElectronAppVersion, getDownloadBaseUrl, getElectronAppDir, isElectronAppInstalled, getElectronAppChecksums, performLogin, performLogout, getAuthService, hasApiKey, getDataDir, getBundledElectronAppVersion, getElectronAppVersionSource, getCredentialsFilePath, __require } from './chunk-
|
|
2
|
+
import { getLogger, getConfig, getQaTools, registerTools, getLocalQaTools, createUnifiedMcpServer, startStdioServer, getElectronAppVersion, getDownloadBaseUrl, getElectronAppDir, isElectronAppInstalled, getElectronAppChecksums, performLogin, performLogout, getAuthService, hasApiKey, getDataDir, getBundledElectronAppVersion, getElectronAppVersionSource, getCredentialsFilePath, __require } from './chunk-DGEO3CP2.js';
|
|
3
3
|
import * as fs from 'fs';
|
|
4
4
|
import { readFileSync, existsSync, rmSync, mkdirSync, createWriteStream, readdirSync, writeFileSync, statSync } from 'fs';
|
|
5
5
|
import * as path3 from 'path';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __export, toolRequiresAuth, startDeviceCodeFlow, saveCredentials, saveApiKey, resetLogger, resetConfig, pollDeviceCode, performLogout, performLogin, openBrowserUrl, loadCredentials, isElectronAppInstalled, isCredentialsExpired, hasApiKey, getValidCredentials, getLogger, getElectronAppVersionSource, getElectronAppVersion, getElectronAppDir, getElectronAppChecksums, getDownloadBaseUrl, getDataDir, getCredentialsFilePath, getConfig, getCallerCredentialsAsync, getCallerCredentials, getBundledElectronAppVersion, getApiKey, deleteCredentials, createChildLogger, createApiKeyWithToken } from './chunk-
|
|
2
|
-
export { createChildLogger, createUnifiedMcpServer, getConfig, getLocalQaTools, getLogger, getQaTools, local_qa_exports as localQa, qa_exports as qa, server_exports as server } from './chunk-
|
|
1
|
+
import { __export, toolRequiresAuth, startDeviceCodeFlow, saveCredentials, saveApiKey, resetLogger, resetConfig, pollDeviceCode, performLogout, performLogin, openBrowserUrl, loadCredentials, isElectronAppInstalled, isCredentialsExpired, hasApiKey, getValidCredentials, getLogger, getElectronAppVersionSource, getElectronAppVersion, getElectronAppDir, getElectronAppChecksums, getDownloadBaseUrl, getDataDir, getCredentialsFilePath, getConfig, getCallerCredentialsAsync, getCallerCredentials, getBundledElectronAppVersion, getApiKey, deleteCredentials, createChildLogger, createApiKeyWithToken } from './chunk-DGEO3CP2.js';
|
|
2
|
+
export { createChildLogger, createUnifiedMcpServer, getConfig, getLocalQaTools, getLogger, getQaTools, local_qa_exports as localQa, qa_exports as qa, server_exports as server } from './chunk-DGEO3CP2.js';
|
|
3
3
|
|
|
4
4
|
// src/shared/index.ts
|
|
5
5
|
var shared_exports = {};
|
|
@@ -31,8 +31,14 @@ 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
39
|
id: string;
|
|
40
|
+
projectId: string;
|
|
41
|
+
useCaseId: string;
|
|
36
42
|
goal: string;
|
|
37
43
|
title: string;
|
|
38
44
|
expectedResult: string;
|
|
@@ -41,6 +47,8 @@ export declare const TestCaseDetailsSchema: z.ZodObject<{
|
|
|
41
47
|
instructions?: string | undefined;
|
|
42
48
|
}, {
|
|
43
49
|
id: string;
|
|
50
|
+
projectId: string;
|
|
51
|
+
useCaseId: string;
|
|
44
52
|
goal: string;
|
|
45
53
|
title: string;
|
|
46
54
|
expectedResult: string;
|
|
@@ -64,14 +72,22 @@ 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
80
|
id: string;
|
|
81
|
+
projectId: string;
|
|
82
|
+
useCaseId: string;
|
|
69
83
|
name: string;
|
|
70
84
|
actionScript: unknown[];
|
|
71
85
|
testCaseId: string;
|
|
72
86
|
url?: string | undefined;
|
|
73
87
|
}, {
|
|
74
88
|
id: string;
|
|
89
|
+
projectId: string;
|
|
90
|
+
useCaseId: string;
|
|
75
91
|
name: string;
|
|
76
92
|
actionScript: unknown[];
|
|
77
93
|
testCaseId: string;
|
|
@@ -99,8 +115,14 @@ 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
123
|
id: string;
|
|
124
|
+
projectId: string;
|
|
125
|
+
useCaseId: string;
|
|
104
126
|
goal: string;
|
|
105
127
|
title: string;
|
|
106
128
|
expectedResult: string;
|
|
@@ -109,6 +131,8 @@ export declare const ExecuteTestGenerationInputSchema: z.ZodObject<{
|
|
|
109
131
|
instructions?: string | undefined;
|
|
110
132
|
}, {
|
|
111
133
|
id: string;
|
|
134
|
+
projectId: string;
|
|
135
|
+
useCaseId: string;
|
|
112
136
|
goal: string;
|
|
113
137
|
title: string;
|
|
114
138
|
expectedResult: string;
|
|
@@ -126,6 +150,8 @@ export declare const ExecuteTestGenerationInputSchema: z.ZodObject<{
|
|
|
126
150
|
localUrl: string;
|
|
127
151
|
testCase: {
|
|
128
152
|
id: string;
|
|
153
|
+
projectId: string;
|
|
154
|
+
useCaseId: string;
|
|
129
155
|
goal: string;
|
|
130
156
|
title: string;
|
|
131
157
|
expectedResult: string;
|
|
@@ -139,6 +165,8 @@ export declare const ExecuteTestGenerationInputSchema: z.ZodObject<{
|
|
|
139
165
|
localUrl: string;
|
|
140
166
|
testCase: {
|
|
141
167
|
id: string;
|
|
168
|
+
projectId: string;
|
|
169
|
+
useCaseId: string;
|
|
142
170
|
goal: string;
|
|
143
171
|
title: string;
|
|
144
172
|
expectedResult: string;
|
|
@@ -167,14 +195,22 @@ 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
203
|
id: string;
|
|
204
|
+
projectId: string;
|
|
205
|
+
useCaseId: string;
|
|
172
206
|
name: string;
|
|
173
207
|
actionScript: unknown[];
|
|
174
208
|
testCaseId: string;
|
|
175
209
|
url?: string | undefined;
|
|
176
210
|
}, {
|
|
177
211
|
id: string;
|
|
212
|
+
projectId: string;
|
|
213
|
+
useCaseId: string;
|
|
178
214
|
name: string;
|
|
179
215
|
actionScript: unknown[];
|
|
180
216
|
testCaseId: string;
|
|
@@ -191,6 +227,8 @@ export declare const ExecuteReplayInputSchema: z.ZodObject<{
|
|
|
191
227
|
approveElectronAppLaunch: boolean;
|
|
192
228
|
testScript: {
|
|
193
229
|
id: string;
|
|
230
|
+
projectId: string;
|
|
231
|
+
useCaseId: string;
|
|
194
232
|
name: string;
|
|
195
233
|
actionScript: unknown[];
|
|
196
234
|
testCaseId: string;
|
|
@@ -202,6 +240,8 @@ export declare const ExecuteReplayInputSchema: z.ZodObject<{
|
|
|
202
240
|
approveElectronAppLaunch: boolean;
|
|
203
241
|
testScript: {
|
|
204
242
|
id: string;
|
|
243
|
+
projectId: string;
|
|
244
|
+
useCaseId: string;
|
|
205
245
|
name: string;
|
|
206
246
|
actionScript: unknown[];
|
|
207
247
|
testCaseId: string;
|
|
@@ -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-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;;IAEhE,iEAAiE;;IAEjE,kEAAkE;;;;;;;;;;;;;;;;;;;;;;EAElE,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAMpE;;;GAGG;AACH,eAAO,MAAM,uBAAuB;IAClC,4BAA4B;;IAE5B,mBAAmB;;IAEnB,iDAAiD;;IAEjD,2BAA2B;;IAE3B,gEAAgE;;IAEhE,iEAAiE;;IAEjE,kEAAkE;;;;;;;;;;;;;;;;;;EAElE,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAMxE;;;GAGG;AACH,eAAO,MAAM,gCAAgC;IAC3C,+CAA+C;;QA1D/C,0BAA0B;;QAE1B,uBAAu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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,aAAa,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,WAAW,EAAE,MA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;;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"}
|