@qawolf/api-contracts 0.74.0 → 0.77.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/v1/index.d.ts +298 -8
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/index.js +8 -0
- package/dist/v1/index.js.map +1 -1
- package/dist/v1/investigation/finding.d.ts +9 -0
- package/dist/v1/investigation/finding.d.ts.map +1 -1
- package/dist/v1/investigation/finding.js +30 -2
- package/dist/v1/investigation/finding.js.map +1 -1
- package/dist/v1/investigation/get.d.ts +13 -0
- package/dist/v1/investigation/get.d.ts.map +1 -1
- package/dist/v1/investigation/get.js +4 -0
- package/dist/v1/investigation/get.js.map +1 -1
- package/dist/v1/investigation/index.d.ts +13 -0
- package/dist/v1/investigation/index.d.ts.map +1 -1
- package/dist/v1/issue/removeFlows.d.ts +2 -1
- package/dist/v1/issue/removeFlows.d.ts.map +1 -1
- package/dist/v1/issue/removeFlows.js +8 -5
- package/dist/v1/issue/removeFlows.js.map +1 -1
- package/dist/v1/run/acceptScreenshotBaseline.d.ts +34 -0
- package/dist/v1/run/acceptScreenshotBaseline.d.ts.map +1 -0
- package/dist/v1/run/acceptScreenshotBaseline.js +61 -0
- package/dist/v1/run/acceptScreenshotBaseline.js.map +1 -0
- package/dist/v1/run/diagnose.js +1 -1
- package/dist/v1/run/diagnose.js.map +1 -1
- package/dist/v1/run/flowFailure.d.ts +23 -0
- package/dist/v1/run/flowFailure.d.ts.map +1 -0
- package/dist/v1/run/flowFailure.js +41 -0
- package/dist/v1/run/flowFailure.js.map +1 -0
- package/dist/v1/run/get.d.ts +6 -0
- package/dist/v1/run/get.d.ts.map +1 -1
- package/dist/v1/run/get.js +2 -21
- package/dist/v1/run/get.js.map +1 -1
- package/dist/v1/run/investigationSessionId.d.ts +3 -0
- package/dist/v1/run/investigationSessionId.d.ts.map +1 -0
- package/dist/v1/run/investigationSessionId.js +12 -0
- package/dist/v1/run/investigationSessionId.js.map +1 -0
- package/dist/v1/run/listScreenshotComparisons.d.ts +60 -0
- package/dist/v1/run/listScreenshotComparisons.d.ts.map +1 -0
- package/dist/v1/run/listScreenshotComparisons.js +124 -0
- package/dist/v1/run/listScreenshotComparisons.js.map +1 -0
- package/dist/v1/run/optOutOfInvestigation.d.ts +26 -0
- package/dist/v1/run/optOutOfInvestigation.d.ts.map +1 -0
- package/dist/v1/run/optOutOfInvestigation.js +38 -0
- package/dist/v1/run/optOutOfInvestigation.js.map +1 -0
- package/dist/v1/run/restoreScreenshotBaseline.d.ts +33 -0
- package/dist/v1/run/restoreScreenshotBaseline.d.ts.map +1 -0
- package/dist/v1/run/restoreScreenshotBaseline.js +57 -0
- package/dist/v1/run/restoreScreenshotBaseline.js.map +1 -0
- package/dist/v1/runner/catalog.d.ts +3 -3
- package/dist/v1/runner/recording.d.ts +10 -10
- package/dist/v1/runner/runFlow.js +1 -1
- package/dist/v1/runner/runFlow.js.map +1 -1
- package/dist/v1/sharedSchemas.d.ts +1 -0
- package/dist/v1/sharedSchemas.d.ts.map +1 -1
- package/dist/v1/sharedSchemas.js +1 -0
- package/dist/v1/sharedSchemas.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
// Matches the cap the server applies, so a caller can tell a cut list from a
|
|
3
|
+
// complete one by `truncated` alone.
|
|
4
|
+
export const maxListedScreenshotAttempts = 20;
|
|
5
|
+
export const makeListScreenshotComparisonsContract = (ids) => {
|
|
6
|
+
const input = z.object({
|
|
7
|
+
flowIds: z
|
|
8
|
+
.array(ids.flow)
|
|
9
|
+
.min(1)
|
|
10
|
+
.max(100)
|
|
11
|
+
.refine((flowIds) => new Set(flowIds).size === flowIds.length, "flowIds must be unique")
|
|
12
|
+
.optional()
|
|
13
|
+
.describe("Only list the comparisons of these flows. Each flow must have a result in the run. Omit to list every failed flow of the run."),
|
|
14
|
+
runId: ids.run,
|
|
15
|
+
});
|
|
16
|
+
const imageUrl = (image) => z
|
|
17
|
+
.url()
|
|
18
|
+
.describe(`Signed URL of the full-size ${image} PNG. It stops working at expiresAt.`);
|
|
19
|
+
const previewUrl = (image) => z
|
|
20
|
+
.url()
|
|
21
|
+
.optional()
|
|
22
|
+
.describe(`Signed URL of a JPEG copy of the ${image} image, scaled down so its long edge is at most 1568 pixels. ` +
|
|
23
|
+
"Fetch this one to look at the image: it is small enough to view inline, while the full-size PNG can be too large. " +
|
|
24
|
+
"It stops working at expiresAt. Absent when QA Wolf could not make the copy, for example because the full-size image is gone.");
|
|
25
|
+
const passedEnvironment = z.object({
|
|
26
|
+
environmentId: ids.environment,
|
|
27
|
+
lastPassedAt: z.iso
|
|
28
|
+
.datetime()
|
|
29
|
+
.describe("When the latest passing comparison in this environment ran."),
|
|
30
|
+
});
|
|
31
|
+
const passingElsewhere = z
|
|
32
|
+
.discriminatedUnion("status", [
|
|
33
|
+
z.object({
|
|
34
|
+
status: z
|
|
35
|
+
.literal("not-tracked")
|
|
36
|
+
.describe("QA Wolf does not record screenshot comparisons for this workspace, so it cannot tell."),
|
|
37
|
+
}),
|
|
38
|
+
z.object({
|
|
39
|
+
environments: z
|
|
40
|
+
.array(passedEnvironment)
|
|
41
|
+
.describe("Other environments where the current baseline passed this screenshot in the last 14 days, most recent first. " +
|
|
42
|
+
"Empty when it passed nowhere else, or when the baseline no longer exists."),
|
|
43
|
+
status: z.literal("tracked"),
|
|
44
|
+
}),
|
|
45
|
+
])
|
|
46
|
+
.describe("Whether the current baseline still passes in other environments. " +
|
|
47
|
+
"A baseline that passes elsewhere points to a difference in this environment rather than an outdated baseline.");
|
|
48
|
+
const comparison = z.object({
|
|
49
|
+
actualPreviewUrl: previewUrl("actual"),
|
|
50
|
+
actualUrl: imageUrl("actual (the screenshot the flow took)"),
|
|
51
|
+
attemptCompletedAt: z.iso
|
|
52
|
+
.datetime()
|
|
53
|
+
.describe("When the run attempt that made the comparison finished."),
|
|
54
|
+
baselineStatus: z
|
|
55
|
+
.enum([
|
|
56
|
+
"unchanged",
|
|
57
|
+
"accepted",
|
|
58
|
+
"changed-since-run",
|
|
59
|
+
"deleted",
|
|
60
|
+
"unknown",
|
|
61
|
+
])
|
|
62
|
+
.describe('How the current baseline relates to the expected image this comparison used. "unchanged": the baseline is still the expected image. ' +
|
|
63
|
+
'"accepted": the baseline is now this comparison\'s actual screenshot, because someone accepted it, so a reattempt should pass. ' +
|
|
64
|
+
'"changed-since-run": someone replaced the baseline with another image after this run, so rerun the flow before deciding anything. ' +
|
|
65
|
+
'"deleted": the baseline no longer exists, and the next run will save its screenshot as the new baseline. ' +
|
|
66
|
+
'"unknown": the run\'s copy of the expected image is gone, so QA Wolf cannot compare.'),
|
|
67
|
+
comparisonId: z
|
|
68
|
+
.string()
|
|
69
|
+
.describe("Identifies this comparison: the run attempt id and the position of the comparison in that attempt."),
|
|
70
|
+
diffPreviewUrl: previewUrl("diff"),
|
|
71
|
+
diffUrl: imageUrl("diff (the pixels that differ are highlighted)"),
|
|
72
|
+
expectedPreviewUrl: previewUrl("expected"),
|
|
73
|
+
expectedUrl: imageUrl("expected (the baseline as it was when the flow ran)"),
|
|
74
|
+
filePath: z
|
|
75
|
+
.string()
|
|
76
|
+
.optional()
|
|
77
|
+
.describe("The flow file that made the comparison."),
|
|
78
|
+
flowId: ids.flow,
|
|
79
|
+
lineNumber: z
|
|
80
|
+
.number()
|
|
81
|
+
.int()
|
|
82
|
+
.optional()
|
|
83
|
+
.describe("The line of filePath that made the comparison."),
|
|
84
|
+
name: z
|
|
85
|
+
.string()
|
|
86
|
+
.describe("The screenshot name the flow passed to toHaveScreenshot. The baseline is stored as _screenshots_/<name>.png in team storage."),
|
|
87
|
+
passingElsewhere,
|
|
88
|
+
runAttemptId: z.string(),
|
|
89
|
+
similarity: z
|
|
90
|
+
.number()
|
|
91
|
+
.describe("How much of the actual image matches the expected image, in percent."),
|
|
92
|
+
sizeMismatch: z
|
|
93
|
+
.boolean()
|
|
94
|
+
.describe("The actual and expected images have different dimensions. That fails the comparison whatever the pixels show, and similarity reads 0."),
|
|
95
|
+
});
|
|
96
|
+
const output = z.object({
|
|
97
|
+
comparisons: z
|
|
98
|
+
.array(comparison)
|
|
99
|
+
.describe(`Each screenshot comparison that failed its flow, from the ${maxListedScreenshotAttempts} most recent failed attempts of the selected flows, oldest attempt first.`),
|
|
100
|
+
expiresAt: z.iso
|
|
101
|
+
.datetime()
|
|
102
|
+
.describe("When the image URLs stop working. Call run.listScreenshotComparisons again for fresh ones after it."),
|
|
103
|
+
truncated: z
|
|
104
|
+
.boolean()
|
|
105
|
+
.describe(`True when the selected flows have more than ${maxListedScreenshotAttempts} failed attempts. Only the ${maxListedScreenshotAttempts} most recent are listed, and the older attempts cannot be listed.`),
|
|
106
|
+
});
|
|
107
|
+
return {
|
|
108
|
+
annotations: {
|
|
109
|
+
destructiveHint: false,
|
|
110
|
+
openWorldHint: false,
|
|
111
|
+
readOnlyHint: false,
|
|
112
|
+
},
|
|
113
|
+
description: "List the screenshot comparisons that failed a run's flows, with the expected, actual and diff images of each. " +
|
|
114
|
+
"Only comparisons that caused a failure are listed: a screenshot that differs within tolerance, or that differs on a line that did not fail, is left out. " +
|
|
115
|
+
"Each comparison tells whether its baseline changed since the run and whether the baseline still passes in other environments. " +
|
|
116
|
+
"The image URLs expire after a few minutes; fetch the preview URLs to look at the images. " +
|
|
117
|
+
"The first call for an image makes its missing JPEG preview and keeps it in team storage, so later calls reuse it.",
|
|
118
|
+
input,
|
|
119
|
+
kind: "read",
|
|
120
|
+
name: "run.listScreenshotComparisons",
|
|
121
|
+
output,
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
//# sourceMappingURL=listScreenshotComparisons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listScreenshotComparisons.js","sourceRoot":"","sources":["../../../src/v1/run/listScreenshotComparisons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,6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;aACR,QAAQ,CACP,8HAA8H,CAC/H;QACH,gBAAgB;QAChB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;QACxB,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,CACP,sEAAsE,CACvE;QACH,YAAY,EAAE,CAAC;aACZ,OAAO,EAAE;aACT,QAAQ,CACP,uIAAuI,CACxI;KACJ,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;QACtB,WAAW,EAAE,CAAC;aACX,KAAK,CAAC,UAAU,CAAC;aACjB,QAAQ,CACP,6DAA6D,2BAA2B,2EAA2E,CACpK;QACH,SAAS,EAAE,CAAC,CAAC,GAAG;aACb,QAAQ,EAAE;aACV,QAAQ,CACP,qGAAqG,CACtG;QACH,SAAS,EAAE,CAAC;aACT,OAAO,EAAE;aACT,QAAQ,CACP,+CAA+C,2BAA2B,8BAA8B,2BAA2B,mEAAmE,CACvM;KACJ,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EACT,gHAAgH;YAChH,2JAA2J;YAC3J,gIAAgI;YAChI,2FAA2F;YAC3F,mHAAmH;QACrH,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,+BAA+B;QACrC,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { PublicIdSchema } from "../ids.js";
|
|
3
|
+
export declare const makeOptOutOfInvestigationRunContract: <FlowId extends PublicIdSchema, RunId extends PublicIdSchema>(ids: {
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
flow: FlowId;
|
|
6
|
+
run: RunId;
|
|
7
|
+
}) => {
|
|
8
|
+
readonly annotations: {
|
|
9
|
+
readonly destructiveHint: true;
|
|
10
|
+
readonly openWorldHint: true;
|
|
11
|
+
readonly readOnlyHint: false;
|
|
12
|
+
};
|
|
13
|
+
readonly description: string;
|
|
14
|
+
readonly input: z.ZodObject<{
|
|
15
|
+
flowIds: z.ZodArray<FlowId>;
|
|
16
|
+
runId: RunId;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
readonly kind: "write";
|
|
19
|
+
readonly name: "run.optOutOfInvestigation";
|
|
20
|
+
readonly output: z.ZodObject<{
|
|
21
|
+
optedOutFlowIds: z.ZodArray<FlowId>;
|
|
22
|
+
runId: RunId;
|
|
23
|
+
url: z.ZodURL;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=optOutOfInvestigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optOutOfInvestigation.d.ts","sourceRoot":"","sources":["../../../src/v1/run/optOutOfInvestigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGhD,eAAO,MAAM,oCAAoC,GAC/C,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,KAAK;IACL,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;CAkDA,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { resource } from "../resource.js";
|
|
3
|
+
export const makeOptOutOfInvestigationRunContract = (ids) => {
|
|
4
|
+
const input = z.object({
|
|
5
|
+
flowIds: z
|
|
6
|
+
.array(ids.flow)
|
|
7
|
+
.min(1)
|
|
8
|
+
// Matches the run diagnosis cap.
|
|
9
|
+
.max(100)
|
|
10
|
+
.refine((flowIds) => new Set(flowIds).size === flowIds.length, "flowIds must be unique")
|
|
11
|
+
.describe("The failed flows to stop investigating. Every named flow must be " +
|
|
12
|
+
"eligible or the whole request is rejected."),
|
|
13
|
+
runId: ids.run,
|
|
14
|
+
});
|
|
15
|
+
const output = resource({
|
|
16
|
+
optedOutFlowIds: z
|
|
17
|
+
.array(ids.flow)
|
|
18
|
+
.describe("The flows that no longer need investigation."),
|
|
19
|
+
runId: ids.run,
|
|
20
|
+
}, { urlFieldDescription: "Absolute URL of the run page." });
|
|
21
|
+
return {
|
|
22
|
+
annotations: {
|
|
23
|
+
destructiveHint: true,
|
|
24
|
+
openWorldHint: true,
|
|
25
|
+
readOnlyHint: false,
|
|
26
|
+
},
|
|
27
|
+
description: 'Mark failed flows in a run as "do not investigate" (DNI): the failures need no bug or maintenance report. ' +
|
|
28
|
+
"Each flow must have failed in the run and still be under investigation. " +
|
|
29
|
+
"A flow that already has a diagnosis cannot be opted out. " +
|
|
30
|
+
"A team or organization key records the opt-out as the workspace's automation user. " +
|
|
31
|
+
"To link a failure to a report instead, use run.diagnose.",
|
|
32
|
+
input,
|
|
33
|
+
kind: "write",
|
|
34
|
+
name: "run.optOutOfInvestigation",
|
|
35
|
+
output,
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=optOutOfInvestigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optOutOfInvestigation.js","sourceRoot":"","sources":["../../../src/v1/run/optOutOfInvestigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAGlD,GAID,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,OAAO,EAAE,CAAC;aACP,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;aACf,GAAG,CAAC,CAAC,CAAC;YACP,iCAAiC;aAChC,GAAG,CAAC,GAAG,CAAC;aACR,MAAM,CACL,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC,MAAM,EACrD,wBAAwB,CACzB;aACA,QAAQ,CACP,mEAAmE;YACjE,4CAA4C,CAC/C;QACH,KAAK,EAAE,GAAG,CAAC,GAAG;KACf,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,QAAQ,CACrB;QACE,eAAe,EAAE,CAAC;aACf,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;aACf,QAAQ,CAAC,8CAA8C,CAAC;QAC3D,KAAK,EAAE,GAAG,CAAC,GAAG;KACf,EACD,EAAE,mBAAmB,EAAE,+BAA+B,EAAE,CACzD,CAAC;IAEF,OAAO;QACL,WAAW,EAAE;YACX,eAAe,EAAE,IAAI;YACrB,aAAa,EAAE,IAAI;YACnB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EACT,4GAA4G;YAC5G,0EAA0E;YAC1E,2DAA2D;YAC3D,qFAAqF;YACrF,0DAA0D;QAC5D,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,2BAA2B;QACjC,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { PublicIdSchema } from "../ids.js";
|
|
3
|
+
export declare const makeRestoreScreenshotBaselineContract: <RunId extends PublicIdSchema>(ids: {
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
run: RunId;
|
|
6
|
+
}) => {
|
|
7
|
+
readonly annotations: {
|
|
8
|
+
readonly destructiveHint: true;
|
|
9
|
+
readonly openWorldHint: false;
|
|
10
|
+
readonly readOnlyHint: false;
|
|
11
|
+
};
|
|
12
|
+
readonly description: string;
|
|
13
|
+
readonly input: z.ZodObject<{
|
|
14
|
+
baselineChangeId: z.ZodString;
|
|
15
|
+
chatSessionId: z.ZodOptional<z.ZodString>;
|
|
16
|
+
runId: RunId;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
readonly kind: "write";
|
|
19
|
+
readonly name: "run.restoreScreenshotBaseline";
|
|
20
|
+
readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
outcome: z.ZodLiteral<"restored">;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
outcome: z.ZodLiteral<"baseline-changed">;
|
|
25
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
+
outcome: z.ZodLiteral<"needs-dispute">;
|
|
27
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
+
outcome: z.ZodLiteral<"not-investigation-session">;
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
+
outcome: z.ZodLiteral<"nothing-to-restore">;
|
|
31
|
+
}, z.core.$strip>], "outcome">;
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=restoreScreenshotBaseline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restoreScreenshotBaseline.d.ts","sourceRoot":"","sources":["../../../src/v1/run/restoreScreenshotBaseline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,qCAAqC,GAChD,KAAK,SAAS,cAAc,EAC5B,KAAK;IACL,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;CAyEA,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { investigationSessionId } from "./investigationSessionId.js";
|
|
3
|
+
export const makeRestoreScreenshotBaselineContract = (ids) => {
|
|
4
|
+
const input = z.object({
|
|
5
|
+
baselineChangeId: z
|
|
6
|
+
.string()
|
|
7
|
+
.trim()
|
|
8
|
+
.min(1)
|
|
9
|
+
.max(100)
|
|
10
|
+
.describe("The baseline change to undo, as `run.acceptScreenshotBaseline` returned it for this run."),
|
|
11
|
+
chatSessionId: investigationSessionId.describe("The chat session of the investigation that restores the baseline. A workspace or organization API key acts as an automation, so it must send the session that investigates the run. A person's call ignores it."),
|
|
12
|
+
runId: ids.run,
|
|
13
|
+
});
|
|
14
|
+
const output = z.discriminatedUnion("outcome", [
|
|
15
|
+
z.object({
|
|
16
|
+
name: z.string().describe("The screenshot name whose baseline changed."),
|
|
17
|
+
outcome: z
|
|
18
|
+
.literal("restored")
|
|
19
|
+
.describe("The baseline the change replaced is the baseline again."),
|
|
20
|
+
}),
|
|
21
|
+
z.object({
|
|
22
|
+
outcome: z
|
|
23
|
+
.literal("baseline-changed")
|
|
24
|
+
.describe("The baseline changed again after this change, so restoring it would undo someone else's change. Nothing changed."),
|
|
25
|
+
}),
|
|
26
|
+
z.object({
|
|
27
|
+
outcome: z
|
|
28
|
+
.literal("needs-dispute")
|
|
29
|
+
.describe("Only a person can restore this change, unless a person disputed the finding that made it. Nothing changed."),
|
|
30
|
+
}),
|
|
31
|
+
z.object({
|
|
32
|
+
outcome: z
|
|
33
|
+
.literal("not-investigation-session")
|
|
34
|
+
.describe("An API key that is not a person's can change a baseline only as the investigation of the run, and chatSessionId is missing or is not the session that investigates the run. Nothing changed."),
|
|
35
|
+
}),
|
|
36
|
+
z.object({
|
|
37
|
+
outcome: z
|
|
38
|
+
.literal("nothing-to-restore")
|
|
39
|
+
.describe("The change was already restored, the name had no baseline before it, or the kept copy of the old baseline is missing or is not the baseline the change replaced. Nothing changed."),
|
|
40
|
+
}),
|
|
41
|
+
]);
|
|
42
|
+
return {
|
|
43
|
+
annotations: {
|
|
44
|
+
destructiveHint: true,
|
|
45
|
+
openWorldHint: false,
|
|
46
|
+
readOnlyHint: false,
|
|
47
|
+
},
|
|
48
|
+
description: "Undo a screenshot baseline change that accepted a failed comparison of the run: put back the baseline it replaced, so later runs compare with the old baseline again. " +
|
|
49
|
+
"Use it when a person disputes a baseline the AI accepted. " +
|
|
50
|
+
"Refuses without changing anything when the baseline changed again since.",
|
|
51
|
+
input,
|
|
52
|
+
kind: "write",
|
|
53
|
+
name: "run.restoreScreenshotBaseline",
|
|
54
|
+
output,
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=restoreScreenshotBaseline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restoreScreenshotBaseline.js","sourceRoot":"","sources":["../../../src/v1/run/restoreScreenshotBaseline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAEnD,GAGD,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,gBAAgB,EAAE,CAAC;aAChB,MAAM,EAAE;aACR,IAAI,EAAE;aACN,GAAG,CAAC,CAAC,CAAC;aACN,GAAG,CAAC,GAAG,CAAC;aACR,QAAQ,CACP,0FAA0F,CAC3F;QACH,aAAa,EAAE,sBAAsB,CAAC,QAAQ,CAC5C,iNAAiN,CAClN;QACD,KAAK,EAAE,GAAG,CAAC,GAAG;KACf,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,CAAC,CAAC,kBAAkB,CAAC,SAAS,EAAE;QAC7C,CAAC,CAAC,MAAM,CAAC;YACP,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6CAA6C,CAAC;YACxE,OAAO,EAAE,CAAC;iBACP,OAAO,CAAC,UAAU,CAAC;iBACnB,QAAQ,CAAC,yDAAyD,CAAC;SACvE,CAAC;QACF,CAAC,CAAC,MAAM,CAAC;YACP,OAAO,EAAE,CAAC;iBACP,OAAO,CAAC,kBAAkB,CAAC;iBAC3B,QAAQ,CACP,kHAAkH,CACnH;SACJ,CAAC;QACF,CAAC,CAAC,MAAM,CAAC;YACP,OAAO,EAAE,CAAC;iBACP,OAAO,CAAC,eAAe,CAAC;iBACxB,QAAQ,CACP,4GAA4G,CAC7G;SACJ,CAAC;QACF,CAAC,CAAC,MAAM,CAAC;YACP,OAAO,EAAE,CAAC;iBACP,OAAO,CAAC,2BAA2B,CAAC;iBACpC,QAAQ,CACP,8LAA8L,CAC/L;SACJ,CAAC;QACF,CAAC,CAAC,MAAM,CAAC;YACP,OAAO,EAAE,CAAC;iBACP,OAAO,CAAC,oBAAoB,CAAC;iBAC7B,QAAQ,CACP,mLAAmL,CACpL;SACJ,CAAC;KACH,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EAAE;YACX,eAAe,EAAE,IAAI;YACrB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EACT,wKAAwK;YACxK,4DAA4D;YAC5D,0EAA0E;QAC5E,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,+BAA+B;QACrC,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -158,8 +158,8 @@ export declare const makeRunnerContracts: <FlowId extends PublicIdSchema, Worksp
|
|
|
158
158
|
endedAt: import("zod").ZodISODateTime;
|
|
159
159
|
id: import("zod").ZodUUID;
|
|
160
160
|
mode: import("zod").ZodEnum<{
|
|
161
|
-
manual: "manual";
|
|
162
161
|
automatic: "automatic";
|
|
162
|
+
manual: "manual";
|
|
163
163
|
}>;
|
|
164
164
|
runIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
165
165
|
runnerId: import("zod").ZodString;
|
|
@@ -175,8 +175,8 @@ export declare const makeRunnerContracts: <FlowId extends PublicIdSchema, Worksp
|
|
|
175
175
|
active: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
176
176
|
id: import("zod").ZodUUID;
|
|
177
177
|
mode: import("zod").ZodEnum<{
|
|
178
|
-
manual: "manual";
|
|
179
178
|
automatic: "automatic";
|
|
179
|
+
manual: "manual";
|
|
180
180
|
}>;
|
|
181
181
|
startedAt: import("zod").ZodISODateTime;
|
|
182
182
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -222,8 +222,8 @@ export declare const makeRunnerContracts: <FlowId extends PublicIdSchema, Worksp
|
|
|
222
222
|
endedAt: import("zod").ZodISODateTime;
|
|
223
223
|
id: import("zod").ZodUUID;
|
|
224
224
|
mode: import("zod").ZodEnum<{
|
|
225
|
-
manual: "manual";
|
|
226
225
|
automatic: "automatic";
|
|
226
|
+
manual: "manual";
|
|
227
227
|
}>;
|
|
228
228
|
runIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
229
229
|
runnerId: import("zod").ZodString;
|
|
@@ -17,8 +17,8 @@ export declare const runnerRecordingSchema: z.ZodObject<{
|
|
|
17
17
|
endedAt: z.ZodISODateTime;
|
|
18
18
|
id: z.ZodUUID;
|
|
19
19
|
mode: z.ZodEnum<{
|
|
20
|
-
manual: "manual";
|
|
21
20
|
automatic: "automatic";
|
|
21
|
+
manual: "manual";
|
|
22
22
|
}>;
|
|
23
23
|
runIds: z.ZodArray<z.ZodString>;
|
|
24
24
|
runnerId: z.ZodString;
|
|
@@ -34,8 +34,8 @@ export declare const runnerRecordingStateSchema: z.ZodObject<{
|
|
|
34
34
|
active: z.ZodOptional<z.ZodObject<{
|
|
35
35
|
id: z.ZodUUID;
|
|
36
36
|
mode: z.ZodEnum<{
|
|
37
|
-
manual: "manual";
|
|
38
37
|
automatic: "automatic";
|
|
38
|
+
manual: "manual";
|
|
39
39
|
}>;
|
|
40
40
|
startedAt: z.ZodISODateTime;
|
|
41
41
|
}, z.core.$strip>>;
|
|
@@ -51,8 +51,8 @@ export declare const runnerRecordingResultSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
51
51
|
endedAt: z.ZodISODateTime;
|
|
52
52
|
id: z.ZodUUID;
|
|
53
53
|
mode: z.ZodEnum<{
|
|
54
|
-
manual: "manual";
|
|
55
54
|
automatic: "automatic";
|
|
55
|
+
manual: "manual";
|
|
56
56
|
}>;
|
|
57
57
|
runIds: z.ZodArray<z.ZodString>;
|
|
58
58
|
runnerId: z.ZodString;
|
|
@@ -68,8 +68,8 @@ export declare const runnerRecordingResultSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
68
68
|
active: z.ZodOptional<z.ZodObject<{
|
|
69
69
|
id: z.ZodUUID;
|
|
70
70
|
mode: z.ZodEnum<{
|
|
71
|
-
manual: "manual";
|
|
72
71
|
automatic: "automatic";
|
|
72
|
+
manual: "manual";
|
|
73
73
|
}>;
|
|
74
74
|
startedAt: z.ZodISODateTime;
|
|
75
75
|
}, z.core.$strip>>;
|
|
@@ -129,8 +129,8 @@ export declare const makeRecordOnRunnerContract: <WorkspaceId extends PublicIdSc
|
|
|
129
129
|
endedAt: z.ZodISODateTime;
|
|
130
130
|
id: z.ZodUUID;
|
|
131
131
|
mode: z.ZodEnum<{
|
|
132
|
-
manual: "manual";
|
|
133
132
|
automatic: "automatic";
|
|
133
|
+
manual: "manual";
|
|
134
134
|
}>;
|
|
135
135
|
runIds: z.ZodArray<z.ZodString>;
|
|
136
136
|
runnerId: z.ZodString;
|
|
@@ -146,8 +146,8 @@ export declare const makeRecordOnRunnerContract: <WorkspaceId extends PublicIdSc
|
|
|
146
146
|
active: z.ZodOptional<z.ZodObject<{
|
|
147
147
|
id: z.ZodUUID;
|
|
148
148
|
mode: z.ZodEnum<{
|
|
149
|
-
manual: "manual";
|
|
150
149
|
automatic: "automatic";
|
|
150
|
+
manual: "manual";
|
|
151
151
|
}>;
|
|
152
152
|
startedAt: z.ZodISODateTime;
|
|
153
153
|
}, z.core.$strip>>;
|
|
@@ -195,8 +195,8 @@ export declare const makeRunnerRecordingsContract: <WorkspaceId extends PublicId
|
|
|
195
195
|
endedAt: z.ZodISODateTime;
|
|
196
196
|
id: z.ZodUUID;
|
|
197
197
|
mode: z.ZodEnum<{
|
|
198
|
-
manual: "manual";
|
|
199
198
|
automatic: "automatic";
|
|
199
|
+
manual: "manual";
|
|
200
200
|
}>;
|
|
201
201
|
runIds: z.ZodArray<z.ZodString>;
|
|
202
202
|
runnerId: z.ZodString;
|
|
@@ -247,8 +247,8 @@ export declare function makeRecordingContracts<WorkspaceId extends PublicIdSchem
|
|
|
247
247
|
endedAt: z.ZodISODateTime;
|
|
248
248
|
id: z.ZodUUID;
|
|
249
249
|
mode: z.ZodEnum<{
|
|
250
|
-
manual: "manual";
|
|
251
250
|
automatic: "automatic";
|
|
251
|
+
manual: "manual";
|
|
252
252
|
}>;
|
|
253
253
|
runIds: z.ZodArray<z.ZodString>;
|
|
254
254
|
runnerId: z.ZodString;
|
|
@@ -264,8 +264,8 @@ export declare function makeRecordingContracts<WorkspaceId extends PublicIdSchem
|
|
|
264
264
|
active: z.ZodOptional<z.ZodObject<{
|
|
265
265
|
id: z.ZodUUID;
|
|
266
266
|
mode: z.ZodEnum<{
|
|
267
|
-
manual: "manual";
|
|
268
267
|
automatic: "automatic";
|
|
268
|
+
manual: "manual";
|
|
269
269
|
}>;
|
|
270
270
|
startedAt: z.ZodISODateTime;
|
|
271
271
|
}, z.core.$strip>>;
|
|
@@ -311,8 +311,8 @@ export declare function makeRecordingContracts<WorkspaceId extends PublicIdSchem
|
|
|
311
311
|
endedAt: z.ZodISODateTime;
|
|
312
312
|
id: z.ZodUUID;
|
|
313
313
|
mode: z.ZodEnum<{
|
|
314
|
-
manual: "manual";
|
|
315
314
|
automatic: "automatic";
|
|
315
|
+
manual: "manual";
|
|
316
316
|
}>;
|
|
317
317
|
runIds: z.ZodArray<z.ZodString>;
|
|
318
318
|
runnerId: z.ZodString;
|
|
@@ -30,7 +30,7 @@ export const makeRunFlowOnRunnerContract = (ids) => {
|
|
|
30
30
|
files: runFilesSchema.describe("Every file the run needs keyed by its path — the flow file, everything it imports, package.json and tsconfig.json. A runner holds no copy of your project, so what runs is exactly what is sent here."),
|
|
31
31
|
flowId: ids.flow
|
|
32
32
|
.optional()
|
|
33
|
-
.describe("The QA Wolf flow this run is for. The run then sees it as `QAWOLF_WORKFLOW_ID`, the same value a platform run of that flow sees, so fixtures named and cleaned up by it match across both.
|
|
33
|
+
.describe("The QA Wolf flow this run is for. The run then sees it as `QAWOLF_WORKFLOW_ID`, the same value a platform run of that flow sees, so fixtures named and cleaned up by it match across both. Omitted, the flow whose file is at `entryPointPath` on the named environment's flow-code branch stands in; a file not in QA Wolf yet, or a run given no environment, leaves the run with no `QAWOLF_WORKFLOW_ID`."),
|
|
34
34
|
id: runnerIdSchema.describe("Id of the runner to run the flow on."),
|
|
35
35
|
selection: runSelectionSchema
|
|
36
36
|
.optional()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runFlow.js","sourceRoot":"","sources":["../../../src/v1/runner/runFlow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,4BAA4B,GAC7B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,oBAAoB,GAAG,CAAC;KAC3B,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KACrC,WAAW,CAAC,CAAC,MAAM,EAAE,iBAAiB,EAAE,EAAE;IACzC,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE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I,EAAE,OAAO;QACb,IAAI,EAAE,gBAAgB;QACtB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -17,6 +17,7 @@ export { type PublicIdSchema, type PublicIdSchemas, defaultIdSchemas, } from "./
|
|
|
17
17
|
export { type McpInputSchema, toMcpInputSchema } from "./mcpInputSchema.js";
|
|
18
18
|
export { type PublicContractName, buildMcpToolDescription, } from "./mcpToolDescription.js";
|
|
19
19
|
export { makeFlowSelectionSchema } from "./run/index.js";
|
|
20
|
+
export { maxListedScreenshotAttempts } from "./run/listScreenshotComparisons.js";
|
|
20
21
|
export * from "./runnerReexports.js";
|
|
21
22
|
export { makeTriggerResourceSchema, triggerActionKindSchema, triggerCadenceSchema, } from "./trigger/index.js";
|
|
22
23
|
//# sourceMappingURL=sharedSchemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedSchemas.d.ts","sourceRoot":"","sources":["../../src/v1/sharedSchemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EACL,KAAK,kBAAkB,EACvB,wBAAwB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,eAAe,EACpB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,YAAY,EACV,oBAAoB,EACpB,iBAAiB,EACjB,4BAA4B,EAC5B,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,KAAK,iBAAiB,EACtB,uBAAuB,GACxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,KAAK,cAA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BAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,KAAK,cAAc,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,KAAK,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EACL,KAAK,6BAA6B,EAClC,6BAA6B,GAC9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,KAAK,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EACL,KAAK,kBAAkB,EACvB,uBAAuB,GACxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACjF,cAAc,sBAAsB,CAAC;AACrC,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,oBAAoB,CAAC"}
|
package/dist/v1/sharedSchemas.js
CHANGED
|
@@ -16,6 +16,7 @@ export { defaultIdSchemas, } from "./ids.js";
|
|
|
16
16
|
export { toMcpInputSchema } from "./mcpInputSchema.js";
|
|
17
17
|
export { buildMcpToolDescription, } from "./mcpToolDescription.js";
|
|
18
18
|
export { makeFlowSelectionSchema } from "./run/index.js";
|
|
19
|
+
export { maxListedScreenshotAttempts } from "./run/listScreenshotComparisons.js";
|
|
19
20
|
export * from "./runnerReexports.js";
|
|
20
21
|
export { makeTriggerResourceSchema, triggerActionKindSchema, triggerCadenceSchema, } from "./trigger/index.js";
|
|
21
22
|
//# sourceMappingURL=sharedSchemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedSchemas.js","sourceRoot":"","sources":["../../src/v1/sharedSchemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAEL,wBAAwB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAA2B,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAO/E,OAAO,EAEL,uBAAuB,GACxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAKL,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAuB,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAyB,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAEL,6BAA6B,GAC9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAGL,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAuB,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAEL,uBAAuB,GACxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,cAAc,sBAAsB,CAAC;AACrC,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"sharedSchemas.js","sourceRoot":"","sources":["../../src/v1/sharedSchemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAEL,wBAAwB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAA2B,kBAAkB,EAAE,MAAM,kBAAkB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