@skyramp/mcp 0.4.4-rc.1 → 0.4.4
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/build/index.js +239 -210
- package/build/playwright/PlaywrightTraceService.d.ts +1 -1
- package/build/playwright/blueprintDigestStore.d.ts +1 -1
- package/build/playwright/registerPlaywrightTools.d.ts +1 -1
- package/build/playwright/traceRecordingPrompt.d.ts +1 -1
- package/build/playwright/traceRecordingPrompt.js +2 -2
- package/build/prompts/local-dev/local-dev-prompts.d.ts +1 -1
- package/build/prompts/local-dev/local-dev-prompts.js +2 -2
- package/build/prompts/startTraceCollectionPrompts.d.ts +1 -1
- package/build/prompts/startTraceCollectionPrompts.js +2 -3
- package/build/prompts/test-recommendation/registerRecommendTestsPrompt.d.ts +1 -1
- package/build/prompts/test-recommendation/registerRecommendTestsPrompt.js +2 -2
- package/build/prompts/testbot/testbot-prompts.d.ts +1 -1
- package/build/prompts/testbot/testbot-prompts.js +4 -7
- package/build/recommendation/answers.d.ts +17 -52
- package/build/recommendation/answers.js +29 -99
- package/build/recommendation/pullRequestText.d.ts +0 -2
- package/build/recommendation/pullRequestText.js +0 -16
- package/build/recommendation/registerPlan.d.ts +4 -7
- package/build/recommendation/registerPlan.js +11 -37
- package/build/recommendation/types.d.ts +4 -21
- package/build/recommendation/verifierContracts.d.ts +4 -4
- package/build/recommendation/verifierContracts.js +4 -4
- package/build/recommendation/verifiers/citedPath.d.ts +2 -2
- package/build/recommendation/verifiers/citedPath.js +2 -2
- package/build/recommendation/verifiers/issueTraceability.d.ts +5 -1
- package/build/recommendation/verifiers/issueTraceability.js +35 -4
- package/build/resources/analysisResources.d.ts +1 -1
- package/build/resources/analysisResources.js +1 -1
- package/build/resources/progressResource.d.ts +1 -1
- package/build/resources/sutSetupResource.d.ts +1 -1
- package/build/resources/sutSetupResource.js +1 -1
- package/build/resources/testbotResource.d.ts +1 -1
- package/build/resources/testbotResource.js +1 -1
- package/build/services/AnalyticsService.d.ts +1 -1
- package/build/services/FleetExecutionService.d.ts +130 -0
- package/build/services/FleetExecutionService.js +391 -0
- package/build/services/ModularizationService.d.ts +1 -1
- package/build/services/TestExecutionService.d.ts +7 -0
- package/build/services/TestExecutionService.js +21 -0
- package/build/services/TestGenerationService.d.ts +1 -1
- package/build/tool-phases.js +2 -0
- package/build/tools/auth/loginTool.d.ts +1 -1
- package/build/tools/auth/loginTool.js +2 -2
- package/build/tools/auth/logoutTool.d.ts +1 -1
- package/build/tools/auth/logoutTool.js +2 -2
- package/build/tools/code-refactor/alignAssertionsTool.d.ts +1 -1
- package/build/tools/code-refactor/alignAssertionsTool.js +1 -1
- package/build/tools/code-refactor/assertionSkillTools.d.ts +1 -1
- package/build/tools/code-refactor/assertionSkillTools.js +2 -2
- package/build/tools/code-refactor/codeReuseTool.d.ts +1 -1
- package/build/tools/code-refactor/codeReuseTool.js +2 -2
- package/build/tools/code-refactor/enhanceAssertionsTool.d.ts +1 -1
- package/build/tools/code-refactor/enhanceAssertionsTool.js +1 -1
- package/build/tools/code-refactor/modularizationTool.d.ts +1 -1
- package/build/tools/code-refactor/modularizationTool.js +2 -2
- package/build/tools/enrichTestWithMocksTool.d.ts +1 -1
- package/build/tools/enrichTestWithMocksTool.js +2 -2
- package/build/tools/executeFleetTool.d.ts +28 -0
- package/build/tools/executeFleetTool.js +107 -0
- package/build/tools/executeSkyrampTestTool.d.ts +8 -5
- package/build/tools/executeSkyrampTestTool.js +5 -5
- package/build/tools/fixErrorTool.d.ts +1 -1
- package/build/tools/fixErrorTool.js +1 -1
- package/build/tools/generate-tests/batchMockGenerationTool.d.ts +6 -57
- package/build/tools/generate-tests/batchMockGenerationTool.js +3 -3
- package/build/tools/generate-tests/generateBatchScenarioRestTool.d.ts +9 -45
- package/build/tools/generate-tests/generateBatchScenarioRestTool.js +29 -11
- package/build/tools/generate-tests/generateContractRestTool.d.ts +1 -2
- package/build/tools/generate-tests/generateContractRestTool.js +1 -1
- package/build/tools/generate-tests/generateE2ERestTool.d.ts +1 -2
- package/build/tools/generate-tests/generateE2ERestTool.js +1 -1
- package/build/tools/generate-tests/generateFuzzRestTool.d.ts +1 -1
- package/build/tools/generate-tests/generateFuzzRestTool.js +1 -1
- package/build/tools/generate-tests/generateIntegrationRestTool.d.ts +1 -2
- package/build/tools/generate-tests/generateIntegrationRestTool.js +1 -1
- package/build/tools/generate-tests/generateLoadRestTool.d.ts +1 -2
- package/build/tools/generate-tests/generateLoadRestTool.js +2 -1
- package/build/tools/generate-tests/generateMockRestTool.d.ts +1 -2
- package/build/tools/generate-tests/generateMockRestTool.js +3 -3
- package/build/tools/generate-tests/generateSmokeRestTool.d.ts +1 -1
- package/build/tools/generate-tests/generateSmokeRestTool.js +1 -1
- package/build/tools/generate-tests/generateUILoadRestTool.d.ts +64 -0
- package/build/tools/generate-tests/generateUILoadRestTool.js +512 -0
- package/build/tools/generate-tests/generateUIRestTool.d.ts +6 -7
- package/build/tools/generate-tests/generateUIRestTool.js +1 -1
- package/build/tools/generate-tests/loadTestSchema.d.ts +15 -15
- package/build/tools/generate-tests/trace-reuse-guard.d.ts +1 -1
- package/build/tools/generateEnrichedIntegrationTestTool.d.ts +1 -2
- package/build/tools/generateEnrichedIntegrationTestTool.js +1 -1
- package/build/tools/localDevWorkerComposeTool.d.ts +1 -1
- package/build/tools/localDevWorkerComposeTool.js +2 -2
- package/build/tools/one-click/oneClickTool.d.ts +1 -1
- package/build/tools/one-click/oneClickTool.js +1 -1
- package/build/tools/preflightMockCheckTool.d.ts +1 -1
- package/build/tools/preflightMockCheckTool.js +3 -3
- package/build/tools/queryProxyMocksTool.d.ts +1 -1
- package/build/tools/queryProxyMocksTool.js +3 -3
- package/build/tools/submitReportTool.d.ts +111 -414
- package/build/tools/submitReportTool.js +154 -138
- package/build/tools/test-management/actionsTool.d.ts +1 -1
- package/build/tools/test-management/actionsTool.js +7 -7
- package/build/tools/test-management/analyzeChangesTool.d.ts +22 -118
- package/build/tools/test-management/analyzeChangesTool.js +4 -4
- package/build/tools/test-management/analyzeTestHealthTool.d.ts +1 -1
- package/build/tools/test-management/analyzeTestHealthTool.js +4 -4
- package/build/tools/test-management/registerTestPlanTool.d.ts +111 -743
- package/build/tools/test-management/registerTestPlanTool.js +20 -36
- package/build/tools/test-management/resolveScreenTool.d.ts +1 -1
- package/build/tools/test-management/resolveScreenTool.js +6 -2
- package/build/tools/trace/startTraceCollectionTool.d.ts +1 -1
- package/build/tools/trace/startTraceCollectionTool.js +4 -4
- package/build/tools/trace/stopTraceCollectionTool.d.ts +1 -1
- package/build/tools/trace/stopTraceCollectionTool.js +2 -2
- package/build/tools/verifyTestDependenciesTool.d.ts +1 -1
- package/build/tools/verifyTestDependenciesTool.js +1 -1
- package/build/tools/workspace/initScanWorkspaceTool.d.ts +1 -1
- package/build/tools/workspace/initScanWorkspaceTool.js +1 -1
- package/build/tools/workspace/initializeWorkspaceTool.d.ts +1 -1
- package/build/tools/workspace/initializeWorkspaceTool.js +1 -1
- package/build/types/RepositoryAnalysis.d.ts +164 -1170
- package/build/types/RepositoryAnalysis.js +12 -10
- package/build/types/StepMethod.d.ts +24 -1
- package/build/types/StepMethod.js +1 -1
- package/build/types/TestTypes.d.ts +34 -133
- package/build/types/TestTypes.js +3 -3
- package/build/types/TestbotReport.d.ts +37 -0
- package/build/types/TestbotReport.js +22 -0
- package/build/types/index.d.ts +1 -1
- package/build/types/index.js +1 -1
- package/build/utils/docker.d.ts +29 -7
- package/build/utils/docker.js +83 -27
- package/build/utils/initAgent.d.ts +3 -3
- package/build/utils/initAgent.js +58 -26
- package/build/utils/progress.d.ts +3 -4
- package/build/utils/progress.js +4 -4
- package/build/utils/utils.d.ts +1 -1
- package/build/utils/versions.d.ts +3 -3
- package/build/utils/versions.js +1 -1
- package/build/workspace/workspace.d.ts +117 -538
- package/build/workspace/workspace.js +2 -2
- package/package.json +6 -5
- package/plugin/prompts/testbot-task1.md +1 -1
- package/plugin/skills/repair-staged-files/SKILL.md +17 -0
- package/build/recommendation/blockerProbes.d.ts +0 -13
- package/build/recommendation/blockerProbes.js +0 -91
- package/build/recommendation/blockers.d.ts +0 -65
- package/build/recommendation/blockers.js +0 -135
|
@@ -1,800 +1,174 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { McpServer } from "@modelcontextprotocol/
|
|
2
|
+
import { McpServer } from "@modelcontextprotocol/server";
|
|
3
3
|
import { StateManager, UnifiedAnalysisState } from "../../utils/AnalysisStateManager.js";
|
|
4
|
-
import {
|
|
5
|
-
import { ObjectionAnswer,
|
|
4
|
+
import { PlanResult } from "../../recommendation/registerPlan.js";
|
|
5
|
+
import { ObjectionAnswer, PlanChange, PlanDefect, PlanInput, PlanMaintenance, VerifyContext } from "../../recommendation/types.js";
|
|
6
6
|
/** The whole run's state file: the primary repository at the root, every related
|
|
7
7
|
* repository under `relatedRepos`. */
|
|
8
8
|
type RunState = Awaited<ReturnType<StateManager<UnifiedAnalysisState>["readFullState"]>>;
|
|
9
9
|
export declare const declarationFieldsSchema: z.ZodObject<{
|
|
10
10
|
changedFile: z.ZodOptional<z.ZodString>;
|
|
11
|
-
changes: z.ZodOptional<z.ZodArray<z.ZodString
|
|
12
|
-
defects: z.ZodOptional<z.ZodArray<z.ZodString
|
|
11
|
+
changes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
|
+
defects: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
13
|
asserts: z.ZodString;
|
|
14
14
|
stepUnderTest: z.ZodOptional<z.ZodNumber>;
|
|
15
15
|
expected: z.ZodObject<{
|
|
16
|
-
outcome: z.ZodEnum<
|
|
16
|
+
outcome: z.ZodEnum<{
|
|
17
|
+
pass: "pass";
|
|
18
|
+
fail: "fail";
|
|
19
|
+
}>;
|
|
17
20
|
why: z.ZodString;
|
|
18
|
-
},
|
|
19
|
-
outcome: "pass" | "fail";
|
|
20
|
-
why: string;
|
|
21
|
-
}, {
|
|
22
|
-
outcome: "pass" | "fail";
|
|
23
|
-
why: string;
|
|
24
|
-
}>;
|
|
21
|
+
}, z.core.$strict>;
|
|
25
22
|
differsFrom: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26
23
|
plannedTestId: z.ZodString;
|
|
27
24
|
difference: z.ZodString;
|
|
28
|
-
},
|
|
29
|
-
plannedTestId: string;
|
|
30
|
-
difference: string;
|
|
31
|
-
}, {
|
|
32
|
-
plannedTestId: string;
|
|
33
|
-
difference: string;
|
|
34
|
-
}>, "many">>;
|
|
25
|
+
}, z.core.$strict>>>;
|
|
35
26
|
existingTests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
36
27
|
file: z.ZodString;
|
|
37
28
|
differsBy: z.ZodString;
|
|
38
|
-
},
|
|
39
|
-
file: string;
|
|
40
|
-
differsBy: string;
|
|
41
|
-
}, {
|
|
42
|
-
file: string;
|
|
43
|
-
differsBy: string;
|
|
44
|
-
}>, "many">>;
|
|
29
|
+
}, z.core.$strict>>>;
|
|
45
30
|
startState: z.ZodOptional<z.ZodString>;
|
|
46
31
|
routes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
47
32
|
step: z.ZodNumber;
|
|
48
33
|
file: z.ZodString;
|
|
49
|
-
},
|
|
50
|
-
file: string;
|
|
51
|
-
step: number;
|
|
52
|
-
}, {
|
|
53
|
-
file: string;
|
|
54
|
-
step: number;
|
|
55
|
-
}>, "many">>;
|
|
34
|
+
}, z.core.$strict>>>;
|
|
56
35
|
screenEvidence: z.ZodOptional<z.ZodObject<{
|
|
57
36
|
file: z.ZodString;
|
|
58
|
-
},
|
|
59
|
-
file: string;
|
|
60
|
-
}, {
|
|
61
|
-
file: string;
|
|
62
|
-
}>>;
|
|
37
|
+
}, z.core.$strict>>;
|
|
63
38
|
elements: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
64
39
|
pageUrl: z.ZodOptional<z.ZodString>;
|
|
65
40
|
items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
66
41
|
role: z.ZodString;
|
|
67
42
|
accessibleName: z.ZodString;
|
|
68
|
-
testId: z.
|
|
69
|
-
stableId: z.
|
|
70
|
-
contextText: z.
|
|
71
|
-
mutability: z.ZodOptional<z.ZodEnum<
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
testId?: string | null | undefined;
|
|
85
|
-
stableId?: string | null | undefined;
|
|
86
|
-
contextText?: string[] | null | undefined;
|
|
87
|
-
mutability?: "unknown" | "mutable" | "immutable" | undefined;
|
|
88
|
-
widgetType?: "unknown" | "custom" | "native" | undefined;
|
|
89
|
-
}>, "many">>>;
|
|
90
|
-
}, "strict", z.ZodTypeAny, {
|
|
91
|
-
items?: {
|
|
92
|
-
role: string;
|
|
93
|
-
testId: string | null;
|
|
94
|
-
stableId: string | null;
|
|
95
|
-
accessibleName: string;
|
|
96
|
-
contextText: string[] | null;
|
|
97
|
-
mutability?: "unknown" | "mutable" | "immutable" | undefined;
|
|
98
|
-
widgetType?: "unknown" | "custom" | "native" | undefined;
|
|
99
|
-
}[] | null | undefined;
|
|
100
|
-
pageUrl?: string | undefined;
|
|
101
|
-
}, {
|
|
102
|
-
items?: {
|
|
103
|
-
role: string;
|
|
104
|
-
accessibleName: string;
|
|
105
|
-
testId?: string | null | undefined;
|
|
106
|
-
stableId?: string | null | undefined;
|
|
107
|
-
contextText?: string[] | null | undefined;
|
|
108
|
-
mutability?: "unknown" | "mutable" | "immutable" | undefined;
|
|
109
|
-
widgetType?: "unknown" | "custom" | "native" | undefined;
|
|
110
|
-
}[] | null | undefined;
|
|
111
|
-
pageUrl?: string | undefined;
|
|
112
|
-
}>>>;
|
|
113
|
-
}, "strip", z.ZodTypeAny, {
|
|
114
|
-
expected: {
|
|
115
|
-
outcome: "pass" | "fail";
|
|
116
|
-
why: string;
|
|
117
|
-
};
|
|
118
|
-
asserts: string;
|
|
119
|
-
existingTests?: {
|
|
120
|
-
file: string;
|
|
121
|
-
differsBy: string;
|
|
122
|
-
}[] | undefined;
|
|
123
|
-
changedFile?: string | undefined;
|
|
124
|
-
defects?: string[] | undefined;
|
|
125
|
-
routes?: {
|
|
126
|
-
file: string;
|
|
127
|
-
step: number;
|
|
128
|
-
}[] | undefined;
|
|
129
|
-
changes?: string[] | undefined;
|
|
130
|
-
elements?: {
|
|
131
|
-
items?: {
|
|
132
|
-
role: string;
|
|
133
|
-
testId: string | null;
|
|
134
|
-
stableId: string | null;
|
|
135
|
-
accessibleName: string;
|
|
136
|
-
contextText: string[] | null;
|
|
137
|
-
mutability?: "unknown" | "mutable" | "immutable" | undefined;
|
|
138
|
-
widgetType?: "unknown" | "custom" | "native" | undefined;
|
|
139
|
-
}[] | null | undefined;
|
|
140
|
-
pageUrl?: string | undefined;
|
|
141
|
-
} | null | undefined;
|
|
142
|
-
stepUnderTest?: number | undefined;
|
|
143
|
-
differsFrom?: {
|
|
144
|
-
plannedTestId: string;
|
|
145
|
-
difference: string;
|
|
146
|
-
}[] | undefined;
|
|
147
|
-
startState?: string | undefined;
|
|
148
|
-
screenEvidence?: {
|
|
149
|
-
file: string;
|
|
150
|
-
} | undefined;
|
|
151
|
-
}, {
|
|
152
|
-
expected: {
|
|
153
|
-
outcome: "pass" | "fail";
|
|
154
|
-
why: string;
|
|
155
|
-
};
|
|
156
|
-
asserts: string;
|
|
157
|
-
existingTests?: {
|
|
158
|
-
file: string;
|
|
159
|
-
differsBy: string;
|
|
160
|
-
}[] | undefined;
|
|
161
|
-
changedFile?: string | undefined;
|
|
162
|
-
defects?: string[] | undefined;
|
|
163
|
-
routes?: {
|
|
164
|
-
file: string;
|
|
165
|
-
step: number;
|
|
166
|
-
}[] | undefined;
|
|
167
|
-
changes?: string[] | undefined;
|
|
168
|
-
elements?: {
|
|
169
|
-
items?: {
|
|
170
|
-
role: string;
|
|
171
|
-
accessibleName: string;
|
|
172
|
-
testId?: string | null | undefined;
|
|
173
|
-
stableId?: string | null | undefined;
|
|
174
|
-
contextText?: string[] | null | undefined;
|
|
175
|
-
mutability?: "unknown" | "mutable" | "immutable" | undefined;
|
|
176
|
-
widgetType?: "unknown" | "custom" | "native" | undefined;
|
|
177
|
-
}[] | null | undefined;
|
|
178
|
-
pageUrl?: string | undefined;
|
|
179
|
-
} | null | undefined;
|
|
180
|
-
stepUnderTest?: number | undefined;
|
|
181
|
-
differsFrom?: {
|
|
182
|
-
plannedTestId: string;
|
|
183
|
-
difference: string;
|
|
184
|
-
}[] | undefined;
|
|
185
|
-
startState?: string | undefined;
|
|
186
|
-
screenEvidence?: {
|
|
187
|
-
file: string;
|
|
188
|
-
} | undefined;
|
|
189
|
-
}>;
|
|
43
|
+
testId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
44
|
+
stableId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
45
|
+
contextText: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>, z.ZodTransform<string[] | null, string[] | null | undefined>>;
|
|
46
|
+
mutability: z.ZodOptional<z.ZodEnum<{
|
|
47
|
+
unknown: "unknown";
|
|
48
|
+
mutable: "mutable";
|
|
49
|
+
immutable: "immutable";
|
|
50
|
+
}>>;
|
|
51
|
+
widgetType: z.ZodOptional<z.ZodEnum<{
|
|
52
|
+
unknown: "unknown";
|
|
53
|
+
custom: "custom";
|
|
54
|
+
native: "native";
|
|
55
|
+
}>>;
|
|
56
|
+
}, z.core.$strip>>>>;
|
|
57
|
+
}, z.core.$strict>>>;
|
|
58
|
+
}, z.core.$strip>;
|
|
190
59
|
/** Move a declaration field written one level too high into `declarations`.
|
|
191
60
|
* MEASURED: about one planned test in five did this across 141 eval planned tests, and
|
|
192
61
|
* every stray planned test-level key was a declaration field. A field in BOTH places
|
|
193
62
|
* with different values stays put, so `.strict()` refuses it by name. */
|
|
194
63
|
export declare function hoistDeclarationFields(value: unknown): unknown;
|
|
195
|
-
declare const registerPlannedTestSchema: z.
|
|
196
|
-
scenarioName: z.
|
|
64
|
+
declare const registerPlannedTestSchema: z.ZodPreprocess<z.ZodObject<{
|
|
65
|
+
scenarioName: z.ZodString;
|
|
197
66
|
repository: z.ZodString;
|
|
198
67
|
description: z.ZodString;
|
|
199
|
-
category: z.ZodEnum<
|
|
200
|
-
|
|
201
|
-
|
|
68
|
+
category: z.ZodEnum<{
|
|
69
|
+
new_endpoint: "new_endpoint";
|
|
70
|
+
bug_caught: "bug_caught";
|
|
71
|
+
requirement_conflict: "requirement_conflict";
|
|
72
|
+
business_rule: "business_rule";
|
|
73
|
+
security_boundary: "security_boundary";
|
|
74
|
+
data_integrity: "data_integrity";
|
|
75
|
+
breaking_change: "breaking_change";
|
|
76
|
+
auth: "auth";
|
|
77
|
+
error_handling: "error_handling";
|
|
78
|
+
workflow: "workflow";
|
|
79
|
+
data_validation: "data_validation";
|
|
80
|
+
crud: "crud";
|
|
81
|
+
}>;
|
|
82
|
+
testType: z.ZodEnum<{
|
|
83
|
+
contract: import("../../types/TestTypes.js").TestType.CONTRACT;
|
|
84
|
+
integration: import("../../types/TestTypes.js").TestType.INTEGRATION;
|
|
85
|
+
e2e: import("../../types/TestTypes.js").TestType.E2E;
|
|
86
|
+
ui: import("../../types/TestTypes.js").TestType.UI;
|
|
87
|
+
}>;
|
|
88
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
202
89
|
order: z.ZodNumber;
|
|
203
|
-
method: z.
|
|
204
|
-
|
|
90
|
+
method: z.ZodPreprocess<z.ZodEnum<{
|
|
91
|
+
GET: "GET";
|
|
92
|
+
POST: "POST";
|
|
93
|
+
PUT: "PUT";
|
|
94
|
+
DELETE: "DELETE";
|
|
95
|
+
PATCH: "PATCH";
|
|
96
|
+
HEAD: "HEAD";
|
|
97
|
+
OPTIONS: "OPTIONS";
|
|
98
|
+
type: "type";
|
|
99
|
+
TRACE: "TRACE";
|
|
100
|
+
CONNECT: "CONNECT";
|
|
101
|
+
assert: "assert";
|
|
102
|
+
click: "click";
|
|
103
|
+
drag: "drag";
|
|
104
|
+
"drag-hold": "drag-hold";
|
|
105
|
+
hover: "hover";
|
|
106
|
+
inspect: "inspect";
|
|
107
|
+
navigate: "navigate";
|
|
108
|
+
press: "press";
|
|
109
|
+
release: "release";
|
|
110
|
+
tap: "tap";
|
|
111
|
+
wait: "wait";
|
|
112
|
+
OPERATION: "OPERATION";
|
|
113
|
+
}>, unknown>;
|
|
114
|
+
path: z.ZodString;
|
|
205
115
|
description: z.ZodOptional<z.ZodString>;
|
|
206
116
|
requestBody: z.ZodOptional<z.ZodUnknown>;
|
|
207
117
|
queryParams: z.ZodOptional<z.ZodUnknown>;
|
|
208
|
-
omits: z.ZodOptional<z.ZodArray<z.ZodString
|
|
118
|
+
omits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
209
119
|
expectedStatusCode: z.ZodOptional<z.ZodNumber>;
|
|
210
|
-
},
|
|
211
|
-
|
|
212
|
-
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | "type" | "TRACE" | "CONNECT" | "assert" | "click" | "drag" | "drag-hold" | "hover" | "inspect" | "navigate" | "press" | "release" | "tap" | "wait" | "OPERATION";
|
|
213
|
-
order: number;
|
|
214
|
-
description?: string | undefined;
|
|
215
|
-
queryParams?: unknown;
|
|
216
|
-
requestBody?: unknown;
|
|
217
|
-
expectedStatusCode?: number | undefined;
|
|
218
|
-
omits?: string[] | undefined;
|
|
219
|
-
}, {
|
|
220
|
-
path: string;
|
|
221
|
-
order: number;
|
|
222
|
-
method?: unknown;
|
|
223
|
-
description?: string | undefined;
|
|
224
|
-
queryParams?: unknown;
|
|
225
|
-
requestBody?: unknown;
|
|
226
|
-
expectedStatusCode?: number | undefined;
|
|
227
|
-
omits?: string[] | undefined;
|
|
228
|
-
}>, {
|
|
229
|
-
path: string;
|
|
230
|
-
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | "type" | "TRACE" | "CONNECT" | "assert" | "click" | "drag" | "drag-hold" | "hover" | "inspect" | "navigate" | "press" | "release" | "tap" | "wait" | "OPERATION";
|
|
231
|
-
order: number;
|
|
232
|
-
description?: string | undefined;
|
|
233
|
-
queryParams?: unknown;
|
|
234
|
-
requestBody?: unknown;
|
|
235
|
-
expectedStatusCode?: number | undefined;
|
|
236
|
-
omits?: string[] | undefined;
|
|
237
|
-
}, {
|
|
238
|
-
path: string;
|
|
239
|
-
order: number;
|
|
240
|
-
method?: unknown;
|
|
241
|
-
description?: string | undefined;
|
|
242
|
-
queryParams?: unknown;
|
|
243
|
-
requestBody?: unknown;
|
|
244
|
-
expectedStatusCode?: number | undefined;
|
|
245
|
-
omits?: string[] | undefined;
|
|
246
|
-
}>, {
|
|
247
|
-
path: string;
|
|
248
|
-
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | "type" | "TRACE" | "CONNECT" | "assert" | "click" | "drag" | "drag-hold" | "hover" | "inspect" | "navigate" | "press" | "release" | "tap" | "wait" | "OPERATION";
|
|
249
|
-
order: number;
|
|
250
|
-
description?: string | undefined;
|
|
251
|
-
queryParams?: unknown;
|
|
252
|
-
requestBody?: unknown;
|
|
253
|
-
expectedStatusCode?: number | undefined;
|
|
254
|
-
omits?: string[] | undefined;
|
|
255
|
-
}, {
|
|
256
|
-
path: string;
|
|
257
|
-
order: number;
|
|
258
|
-
method?: unknown;
|
|
259
|
-
description?: string | undefined;
|
|
260
|
-
queryParams?: unknown;
|
|
261
|
-
requestBody?: unknown;
|
|
262
|
-
expectedStatusCode?: number | undefined;
|
|
263
|
-
omits?: string[] | undefined;
|
|
264
|
-
}>, "many">;
|
|
265
|
-
declarations: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
120
|
+
}, z.core.$strip>>;
|
|
121
|
+
declarations: z.ZodOptional<z.ZodObject<{
|
|
266
122
|
changedFile: z.ZodOptional<z.ZodString>;
|
|
267
|
-
changes: z.ZodOptional<z.ZodArray<z.ZodString
|
|
268
|
-
defects: z.ZodOptional<z.ZodArray<z.ZodString
|
|
123
|
+
changes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
124
|
+
defects: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
269
125
|
asserts: z.ZodString;
|
|
270
126
|
stepUnderTest: z.ZodOptional<z.ZodNumber>;
|
|
271
127
|
expected: z.ZodObject<{
|
|
272
|
-
outcome: z.ZodEnum<
|
|
128
|
+
outcome: z.ZodEnum<{
|
|
129
|
+
pass: "pass";
|
|
130
|
+
fail: "fail";
|
|
131
|
+
}>;
|
|
273
132
|
why: z.ZodString;
|
|
274
|
-
},
|
|
275
|
-
outcome: "pass" | "fail";
|
|
276
|
-
why: string;
|
|
277
|
-
}, {
|
|
278
|
-
outcome: "pass" | "fail";
|
|
279
|
-
why: string;
|
|
280
|
-
}>;
|
|
133
|
+
}, z.core.$strict>;
|
|
281
134
|
differsFrom: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
282
135
|
plannedTestId: z.ZodString;
|
|
283
136
|
difference: z.ZodString;
|
|
284
|
-
},
|
|
285
|
-
plannedTestId: string;
|
|
286
|
-
difference: string;
|
|
287
|
-
}, {
|
|
288
|
-
plannedTestId: string;
|
|
289
|
-
difference: string;
|
|
290
|
-
}>, "many">>;
|
|
137
|
+
}, z.core.$strict>>>;
|
|
291
138
|
existingTests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
292
139
|
file: z.ZodString;
|
|
293
140
|
differsBy: z.ZodString;
|
|
294
|
-
},
|
|
295
|
-
file: string;
|
|
296
|
-
differsBy: string;
|
|
297
|
-
}, {
|
|
298
|
-
file: string;
|
|
299
|
-
differsBy: string;
|
|
300
|
-
}>, "many">>;
|
|
141
|
+
}, z.core.$strict>>>;
|
|
301
142
|
startState: z.ZodOptional<z.ZodString>;
|
|
302
143
|
routes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
303
144
|
step: z.ZodNumber;
|
|
304
145
|
file: z.ZodString;
|
|
305
|
-
},
|
|
306
|
-
file: string;
|
|
307
|
-
step: number;
|
|
308
|
-
}, {
|
|
309
|
-
file: string;
|
|
310
|
-
step: number;
|
|
311
|
-
}>, "many">>;
|
|
146
|
+
}, z.core.$strict>>>;
|
|
312
147
|
screenEvidence: z.ZodOptional<z.ZodObject<{
|
|
313
148
|
file: z.ZodString;
|
|
314
|
-
},
|
|
315
|
-
file: string;
|
|
316
|
-
}, {
|
|
317
|
-
file: string;
|
|
318
|
-
}>>;
|
|
149
|
+
}, z.core.$strict>>;
|
|
319
150
|
elements: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
320
151
|
pageUrl: z.ZodOptional<z.ZodString>;
|
|
321
152
|
items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
322
153
|
role: z.ZodString;
|
|
323
154
|
accessibleName: z.ZodString;
|
|
324
|
-
testId: z.
|
|
325
|
-
stableId: z.
|
|
326
|
-
contextText: z.
|
|
327
|
-
mutability: z.ZodOptional<z.ZodEnum<
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
},
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
stableId?: string | null | undefined;
|
|
342
|
-
contextText?: string[] | null | undefined;
|
|
343
|
-
mutability?: "unknown" | "mutable" | "immutable" | undefined;
|
|
344
|
-
widgetType?: "unknown" | "custom" | "native" | undefined;
|
|
345
|
-
}>, "many">>>;
|
|
346
|
-
}, "strict", z.ZodTypeAny, {
|
|
347
|
-
items?: {
|
|
348
|
-
role: string;
|
|
349
|
-
testId: string | null;
|
|
350
|
-
stableId: string | null;
|
|
351
|
-
accessibleName: string;
|
|
352
|
-
contextText: string[] | null;
|
|
353
|
-
mutability?: "unknown" | "mutable" | "immutable" | undefined;
|
|
354
|
-
widgetType?: "unknown" | "custom" | "native" | undefined;
|
|
355
|
-
}[] | null | undefined;
|
|
356
|
-
pageUrl?: string | undefined;
|
|
357
|
-
}, {
|
|
358
|
-
items?: {
|
|
359
|
-
role: string;
|
|
360
|
-
accessibleName: string;
|
|
361
|
-
testId?: string | null | undefined;
|
|
362
|
-
stableId?: string | null | undefined;
|
|
363
|
-
contextText?: string[] | null | undefined;
|
|
364
|
-
mutability?: "unknown" | "mutable" | "immutable" | undefined;
|
|
365
|
-
widgetType?: "unknown" | "custom" | "native" | undefined;
|
|
366
|
-
}[] | null | undefined;
|
|
367
|
-
pageUrl?: string | undefined;
|
|
368
|
-
}>>>;
|
|
369
|
-
}, "strict", z.ZodTypeAny, {
|
|
370
|
-
expected: {
|
|
371
|
-
outcome: "pass" | "fail";
|
|
372
|
-
why: string;
|
|
373
|
-
};
|
|
374
|
-
asserts: string;
|
|
375
|
-
existingTests?: {
|
|
376
|
-
file: string;
|
|
377
|
-
differsBy: string;
|
|
378
|
-
}[] | undefined;
|
|
379
|
-
changedFile?: string | undefined;
|
|
380
|
-
defects?: string[] | undefined;
|
|
381
|
-
routes?: {
|
|
382
|
-
file: string;
|
|
383
|
-
step: number;
|
|
384
|
-
}[] | undefined;
|
|
385
|
-
changes?: string[] | undefined;
|
|
386
|
-
elements?: {
|
|
387
|
-
items?: {
|
|
388
|
-
role: string;
|
|
389
|
-
testId: string | null;
|
|
390
|
-
stableId: string | null;
|
|
391
|
-
accessibleName: string;
|
|
392
|
-
contextText: string[] | null;
|
|
393
|
-
mutability?: "unknown" | "mutable" | "immutable" | undefined;
|
|
394
|
-
widgetType?: "unknown" | "custom" | "native" | undefined;
|
|
395
|
-
}[] | null | undefined;
|
|
396
|
-
pageUrl?: string | undefined;
|
|
397
|
-
} | null | undefined;
|
|
398
|
-
stepUnderTest?: number | undefined;
|
|
399
|
-
differsFrom?: {
|
|
400
|
-
plannedTestId: string;
|
|
401
|
-
difference: string;
|
|
402
|
-
}[] | undefined;
|
|
403
|
-
startState?: string | undefined;
|
|
404
|
-
screenEvidence?: {
|
|
405
|
-
file: string;
|
|
406
|
-
} | undefined;
|
|
407
|
-
}, {
|
|
408
|
-
expected: {
|
|
409
|
-
outcome: "pass" | "fail";
|
|
410
|
-
why: string;
|
|
411
|
-
};
|
|
412
|
-
asserts: string;
|
|
413
|
-
existingTests?: {
|
|
414
|
-
file: string;
|
|
415
|
-
differsBy: string;
|
|
416
|
-
}[] | undefined;
|
|
417
|
-
changedFile?: string | undefined;
|
|
418
|
-
defects?: string[] | undefined;
|
|
419
|
-
routes?: {
|
|
420
|
-
file: string;
|
|
421
|
-
step: number;
|
|
422
|
-
}[] | undefined;
|
|
423
|
-
changes?: string[] | undefined;
|
|
424
|
-
elements?: {
|
|
425
|
-
items?: {
|
|
426
|
-
role: string;
|
|
427
|
-
accessibleName: string;
|
|
428
|
-
testId?: string | null | undefined;
|
|
429
|
-
stableId?: string | null | undefined;
|
|
430
|
-
contextText?: string[] | null | undefined;
|
|
431
|
-
mutability?: "unknown" | "mutable" | "immutable" | undefined;
|
|
432
|
-
widgetType?: "unknown" | "custom" | "native" | undefined;
|
|
433
|
-
}[] | null | undefined;
|
|
434
|
-
pageUrl?: string | undefined;
|
|
435
|
-
} | null | undefined;
|
|
436
|
-
stepUnderTest?: number | undefined;
|
|
437
|
-
differsFrom?: {
|
|
438
|
-
plannedTestId: string;
|
|
439
|
-
difference: string;
|
|
440
|
-
}[] | undefined;
|
|
441
|
-
startState?: string | undefined;
|
|
442
|
-
screenEvidence?: {
|
|
443
|
-
file: string;
|
|
444
|
-
} | undefined;
|
|
445
|
-
}>, {
|
|
446
|
-
expected: {
|
|
447
|
-
outcome: "pass" | "fail";
|
|
448
|
-
why: string;
|
|
449
|
-
};
|
|
450
|
-
asserts: string;
|
|
451
|
-
existingTests?: {
|
|
452
|
-
file: string;
|
|
453
|
-
differsBy: string;
|
|
454
|
-
}[] | undefined;
|
|
455
|
-
changedFile?: string | undefined;
|
|
456
|
-
defects?: string[] | undefined;
|
|
457
|
-
routes?: {
|
|
458
|
-
file: string;
|
|
459
|
-
step: number;
|
|
460
|
-
}[] | undefined;
|
|
461
|
-
changes?: string[] | undefined;
|
|
462
|
-
elements?: {
|
|
463
|
-
items?: {
|
|
464
|
-
role: string;
|
|
465
|
-
testId: string | null;
|
|
466
|
-
stableId: string | null;
|
|
467
|
-
accessibleName: string;
|
|
468
|
-
contextText: string[] | null;
|
|
469
|
-
mutability?: "unknown" | "mutable" | "immutable" | undefined;
|
|
470
|
-
widgetType?: "unknown" | "custom" | "native" | undefined;
|
|
471
|
-
}[] | null | undefined;
|
|
472
|
-
pageUrl?: string | undefined;
|
|
473
|
-
} | null | undefined;
|
|
474
|
-
stepUnderTest?: number | undefined;
|
|
475
|
-
differsFrom?: {
|
|
476
|
-
plannedTestId: string;
|
|
477
|
-
difference: string;
|
|
478
|
-
}[] | undefined;
|
|
479
|
-
startState?: string | undefined;
|
|
480
|
-
screenEvidence?: {
|
|
481
|
-
file: string;
|
|
482
|
-
} | undefined;
|
|
483
|
-
}, {
|
|
484
|
-
expected: {
|
|
485
|
-
outcome: "pass" | "fail";
|
|
486
|
-
why: string;
|
|
487
|
-
};
|
|
488
|
-
asserts: string;
|
|
489
|
-
existingTests?: {
|
|
490
|
-
file: string;
|
|
491
|
-
differsBy: string;
|
|
492
|
-
}[] | undefined;
|
|
493
|
-
changedFile?: string | undefined;
|
|
494
|
-
defects?: string[] | undefined;
|
|
495
|
-
routes?: {
|
|
496
|
-
file: string;
|
|
497
|
-
step: number;
|
|
498
|
-
}[] | undefined;
|
|
499
|
-
changes?: string[] | undefined;
|
|
500
|
-
elements?: {
|
|
501
|
-
items?: {
|
|
502
|
-
role: string;
|
|
503
|
-
accessibleName: string;
|
|
504
|
-
testId?: string | null | undefined;
|
|
505
|
-
stableId?: string | null | undefined;
|
|
506
|
-
contextText?: string[] | null | undefined;
|
|
507
|
-
mutability?: "unknown" | "mutable" | "immutable" | undefined;
|
|
508
|
-
widgetType?: "unknown" | "custom" | "native" | undefined;
|
|
509
|
-
}[] | null | undefined;
|
|
510
|
-
pageUrl?: string | undefined;
|
|
511
|
-
} | null | undefined;
|
|
512
|
-
stepUnderTest?: number | undefined;
|
|
513
|
-
differsFrom?: {
|
|
514
|
-
plannedTestId: string;
|
|
515
|
-
difference: string;
|
|
516
|
-
}[] | undefined;
|
|
517
|
-
startState?: string | undefined;
|
|
518
|
-
screenEvidence?: {
|
|
519
|
-
file: string;
|
|
520
|
-
} | undefined;
|
|
521
|
-
}>>;
|
|
522
|
-
}, "strict", z.ZodTypeAny, {
|
|
523
|
-
description: string;
|
|
524
|
-
repository: string;
|
|
525
|
-
testType: import("../../types/TestTypes.js").TestType.CONTRACT | import("../../types/TestTypes.js").TestType.INTEGRATION | import("../../types/TestTypes.js").TestType.E2E | import("../../types/TestTypes.js").TestType.UI;
|
|
526
|
-
category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
527
|
-
scenarioName: string;
|
|
528
|
-
steps: {
|
|
529
|
-
path: string;
|
|
530
|
-
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | "type" | "TRACE" | "CONNECT" | "assert" | "click" | "drag" | "drag-hold" | "hover" | "inspect" | "navigate" | "press" | "release" | "tap" | "wait" | "OPERATION";
|
|
531
|
-
order: number;
|
|
532
|
-
description?: string | undefined;
|
|
533
|
-
queryParams?: unknown;
|
|
534
|
-
requestBody?: unknown;
|
|
535
|
-
expectedStatusCode?: number | undefined;
|
|
536
|
-
omits?: string[] | undefined;
|
|
537
|
-
}[];
|
|
538
|
-
declarations?: {
|
|
539
|
-
expected: {
|
|
540
|
-
outcome: "pass" | "fail";
|
|
541
|
-
why: string;
|
|
542
|
-
};
|
|
543
|
-
asserts: string;
|
|
544
|
-
existingTests?: {
|
|
545
|
-
file: string;
|
|
546
|
-
differsBy: string;
|
|
547
|
-
}[] | undefined;
|
|
548
|
-
changedFile?: string | undefined;
|
|
549
|
-
defects?: string[] | undefined;
|
|
550
|
-
routes?: {
|
|
551
|
-
file: string;
|
|
552
|
-
step: number;
|
|
553
|
-
}[] | undefined;
|
|
554
|
-
changes?: string[] | undefined;
|
|
555
|
-
elements?: {
|
|
556
|
-
items?: {
|
|
557
|
-
role: string;
|
|
558
|
-
testId: string | null;
|
|
559
|
-
stableId: string | null;
|
|
560
|
-
accessibleName: string;
|
|
561
|
-
contextText: string[] | null;
|
|
562
|
-
mutability?: "unknown" | "mutable" | "immutable" | undefined;
|
|
563
|
-
widgetType?: "unknown" | "custom" | "native" | undefined;
|
|
564
|
-
}[] | null | undefined;
|
|
565
|
-
pageUrl?: string | undefined;
|
|
566
|
-
} | null | undefined;
|
|
567
|
-
stepUnderTest?: number | undefined;
|
|
568
|
-
differsFrom?: {
|
|
569
|
-
plannedTestId: string;
|
|
570
|
-
difference: string;
|
|
571
|
-
}[] | undefined;
|
|
572
|
-
startState?: string | undefined;
|
|
573
|
-
screenEvidence?: {
|
|
574
|
-
file: string;
|
|
575
|
-
} | undefined;
|
|
576
|
-
} | undefined;
|
|
577
|
-
}, {
|
|
578
|
-
description: string;
|
|
579
|
-
repository: string;
|
|
580
|
-
testType: import("../../types/TestTypes.js").TestType.CONTRACT | import("../../types/TestTypes.js").TestType.INTEGRATION | import("../../types/TestTypes.js").TestType.E2E | import("../../types/TestTypes.js").TestType.UI;
|
|
581
|
-
category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
582
|
-
scenarioName: string;
|
|
583
|
-
steps: {
|
|
584
|
-
path: string;
|
|
585
|
-
order: number;
|
|
586
|
-
method?: unknown;
|
|
587
|
-
description?: string | undefined;
|
|
588
|
-
queryParams?: unknown;
|
|
589
|
-
requestBody?: unknown;
|
|
590
|
-
expectedStatusCode?: number | undefined;
|
|
591
|
-
omits?: string[] | undefined;
|
|
592
|
-
}[];
|
|
593
|
-
declarations?: {
|
|
594
|
-
expected: {
|
|
595
|
-
outcome: "pass" | "fail";
|
|
596
|
-
why: string;
|
|
597
|
-
};
|
|
598
|
-
asserts: string;
|
|
599
|
-
existingTests?: {
|
|
600
|
-
file: string;
|
|
601
|
-
differsBy: string;
|
|
602
|
-
}[] | undefined;
|
|
603
|
-
changedFile?: string | undefined;
|
|
604
|
-
defects?: string[] | undefined;
|
|
605
|
-
routes?: {
|
|
606
|
-
file: string;
|
|
607
|
-
step: number;
|
|
608
|
-
}[] | undefined;
|
|
609
|
-
changes?: string[] | undefined;
|
|
610
|
-
elements?: {
|
|
611
|
-
items?: {
|
|
612
|
-
role: string;
|
|
613
|
-
accessibleName: string;
|
|
614
|
-
testId?: string | null | undefined;
|
|
615
|
-
stableId?: string | null | undefined;
|
|
616
|
-
contextText?: string[] | null | undefined;
|
|
617
|
-
mutability?: "unknown" | "mutable" | "immutable" | undefined;
|
|
618
|
-
widgetType?: "unknown" | "custom" | "native" | undefined;
|
|
619
|
-
}[] | null | undefined;
|
|
620
|
-
pageUrl?: string | undefined;
|
|
621
|
-
} | null | undefined;
|
|
622
|
-
stepUnderTest?: number | undefined;
|
|
623
|
-
differsFrom?: {
|
|
624
|
-
plannedTestId: string;
|
|
625
|
-
difference: string;
|
|
626
|
-
}[] | undefined;
|
|
627
|
-
startState?: string | undefined;
|
|
628
|
-
screenEvidence?: {
|
|
629
|
-
file: string;
|
|
630
|
-
} | undefined;
|
|
631
|
-
} | undefined;
|
|
632
|
-
}>, {
|
|
633
|
-
description: string;
|
|
634
|
-
repository: string;
|
|
635
|
-
testType: import("../../types/TestTypes.js").TestType.CONTRACT | import("../../types/TestTypes.js").TestType.INTEGRATION | import("../../types/TestTypes.js").TestType.E2E | import("../../types/TestTypes.js").TestType.UI;
|
|
636
|
-
category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
637
|
-
scenarioName: string;
|
|
638
|
-
steps: {
|
|
639
|
-
path: string;
|
|
640
|
-
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | "type" | "TRACE" | "CONNECT" | "assert" | "click" | "drag" | "drag-hold" | "hover" | "inspect" | "navigate" | "press" | "release" | "tap" | "wait" | "OPERATION";
|
|
641
|
-
order: number;
|
|
642
|
-
description?: string | undefined;
|
|
643
|
-
queryParams?: unknown;
|
|
644
|
-
requestBody?: unknown;
|
|
645
|
-
expectedStatusCode?: number | undefined;
|
|
646
|
-
omits?: string[] | undefined;
|
|
647
|
-
}[];
|
|
648
|
-
declarations?: {
|
|
649
|
-
expected: {
|
|
650
|
-
outcome: "pass" | "fail";
|
|
651
|
-
why: string;
|
|
652
|
-
};
|
|
653
|
-
asserts: string;
|
|
654
|
-
existingTests?: {
|
|
655
|
-
file: string;
|
|
656
|
-
differsBy: string;
|
|
657
|
-
}[] | undefined;
|
|
658
|
-
changedFile?: string | undefined;
|
|
659
|
-
defects?: string[] | undefined;
|
|
660
|
-
routes?: {
|
|
661
|
-
file: string;
|
|
662
|
-
step: number;
|
|
663
|
-
}[] | undefined;
|
|
664
|
-
changes?: string[] | undefined;
|
|
665
|
-
elements?: {
|
|
666
|
-
items?: {
|
|
667
|
-
role: string;
|
|
668
|
-
testId: string | null;
|
|
669
|
-
stableId: string | null;
|
|
670
|
-
accessibleName: string;
|
|
671
|
-
contextText: string[] | null;
|
|
672
|
-
mutability?: "unknown" | "mutable" | "immutable" | undefined;
|
|
673
|
-
widgetType?: "unknown" | "custom" | "native" | undefined;
|
|
674
|
-
}[] | null | undefined;
|
|
675
|
-
pageUrl?: string | undefined;
|
|
676
|
-
} | null | undefined;
|
|
677
|
-
stepUnderTest?: number | undefined;
|
|
678
|
-
differsFrom?: {
|
|
679
|
-
plannedTestId: string;
|
|
680
|
-
difference: string;
|
|
681
|
-
}[] | undefined;
|
|
682
|
-
startState?: string | undefined;
|
|
683
|
-
screenEvidence?: {
|
|
684
|
-
file: string;
|
|
685
|
-
} | undefined;
|
|
686
|
-
} | undefined;
|
|
687
|
-
}, {
|
|
688
|
-
description: string;
|
|
689
|
-
repository: string;
|
|
690
|
-
testType: import("../../types/TestTypes.js").TestType.CONTRACT | import("../../types/TestTypes.js").TestType.INTEGRATION | import("../../types/TestTypes.js").TestType.E2E | import("../../types/TestTypes.js").TestType.UI;
|
|
691
|
-
category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
692
|
-
scenarioName: string;
|
|
693
|
-
steps: {
|
|
694
|
-
path: string;
|
|
695
|
-
order: number;
|
|
696
|
-
method?: unknown;
|
|
697
|
-
description?: string | undefined;
|
|
698
|
-
queryParams?: unknown;
|
|
699
|
-
requestBody?: unknown;
|
|
700
|
-
expectedStatusCode?: number | undefined;
|
|
701
|
-
omits?: string[] | undefined;
|
|
702
|
-
}[];
|
|
703
|
-
declarations?: {
|
|
704
|
-
expected: {
|
|
705
|
-
outcome: "pass" | "fail";
|
|
706
|
-
why: string;
|
|
707
|
-
};
|
|
708
|
-
asserts: string;
|
|
709
|
-
existingTests?: {
|
|
710
|
-
file: string;
|
|
711
|
-
differsBy: string;
|
|
712
|
-
}[] | undefined;
|
|
713
|
-
changedFile?: string | undefined;
|
|
714
|
-
defects?: string[] | undefined;
|
|
715
|
-
routes?: {
|
|
716
|
-
file: string;
|
|
717
|
-
step: number;
|
|
718
|
-
}[] | undefined;
|
|
719
|
-
changes?: string[] | undefined;
|
|
720
|
-
elements?: {
|
|
721
|
-
items?: {
|
|
722
|
-
role: string;
|
|
723
|
-
accessibleName: string;
|
|
724
|
-
testId?: string | null | undefined;
|
|
725
|
-
stableId?: string | null | undefined;
|
|
726
|
-
contextText?: string[] | null | undefined;
|
|
727
|
-
mutability?: "unknown" | "mutable" | "immutable" | undefined;
|
|
728
|
-
widgetType?: "unknown" | "custom" | "native" | undefined;
|
|
729
|
-
}[] | null | undefined;
|
|
730
|
-
pageUrl?: string | undefined;
|
|
731
|
-
} | null | undefined;
|
|
732
|
-
stepUnderTest?: number | undefined;
|
|
733
|
-
differsFrom?: {
|
|
734
|
-
plannedTestId: string;
|
|
735
|
-
difference: string;
|
|
736
|
-
}[] | undefined;
|
|
737
|
-
startState?: string | undefined;
|
|
738
|
-
screenEvidence?: {
|
|
739
|
-
file: string;
|
|
740
|
-
} | undefined;
|
|
741
|
-
} | undefined;
|
|
742
|
-
}>, {
|
|
743
|
-
description: string;
|
|
744
|
-
repository: string;
|
|
745
|
-
testType: import("../../types/TestTypes.js").TestType.CONTRACT | import("../../types/TestTypes.js").TestType.INTEGRATION | import("../../types/TestTypes.js").TestType.E2E | import("../../types/TestTypes.js").TestType.UI;
|
|
746
|
-
category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
747
|
-
scenarioName: string;
|
|
748
|
-
steps: {
|
|
749
|
-
path: string;
|
|
750
|
-
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | "type" | "TRACE" | "CONNECT" | "assert" | "click" | "drag" | "drag-hold" | "hover" | "inspect" | "navigate" | "press" | "release" | "tap" | "wait" | "OPERATION";
|
|
751
|
-
order: number;
|
|
752
|
-
description?: string | undefined;
|
|
753
|
-
queryParams?: unknown;
|
|
754
|
-
requestBody?: unknown;
|
|
755
|
-
expectedStatusCode?: number | undefined;
|
|
756
|
-
omits?: string[] | undefined;
|
|
757
|
-
}[];
|
|
758
|
-
declarations?: {
|
|
759
|
-
expected: {
|
|
760
|
-
outcome: "pass" | "fail";
|
|
761
|
-
why: string;
|
|
762
|
-
};
|
|
763
|
-
asserts: string;
|
|
764
|
-
existingTests?: {
|
|
765
|
-
file: string;
|
|
766
|
-
differsBy: string;
|
|
767
|
-
}[] | undefined;
|
|
768
|
-
changedFile?: string | undefined;
|
|
769
|
-
defects?: string[] | undefined;
|
|
770
|
-
routes?: {
|
|
771
|
-
file: string;
|
|
772
|
-
step: number;
|
|
773
|
-
}[] | undefined;
|
|
774
|
-
changes?: string[] | undefined;
|
|
775
|
-
elements?: {
|
|
776
|
-
items?: {
|
|
777
|
-
role: string;
|
|
778
|
-
testId: string | null;
|
|
779
|
-
stableId: string | null;
|
|
780
|
-
accessibleName: string;
|
|
781
|
-
contextText: string[] | null;
|
|
782
|
-
mutability?: "unknown" | "mutable" | "immutable" | undefined;
|
|
783
|
-
widgetType?: "unknown" | "custom" | "native" | undefined;
|
|
784
|
-
}[] | null | undefined;
|
|
785
|
-
pageUrl?: string | undefined;
|
|
786
|
-
} | null | undefined;
|
|
787
|
-
stepUnderTest?: number | undefined;
|
|
788
|
-
differsFrom?: {
|
|
789
|
-
plannedTestId: string;
|
|
790
|
-
difference: string;
|
|
791
|
-
}[] | undefined;
|
|
792
|
-
startState?: string | undefined;
|
|
793
|
-
screenEvidence?: {
|
|
794
|
-
file: string;
|
|
795
|
-
} | undefined;
|
|
796
|
-
} | undefined;
|
|
797
|
-
}, unknown>;
|
|
155
|
+
testId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
156
|
+
stableId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
157
|
+
contextText: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>, z.ZodTransform<string[] | null, string[] | null | undefined>>;
|
|
158
|
+
mutability: z.ZodOptional<z.ZodEnum<{
|
|
159
|
+
unknown: "unknown";
|
|
160
|
+
mutable: "mutable";
|
|
161
|
+
immutable: "immutable";
|
|
162
|
+
}>>;
|
|
163
|
+
widgetType: z.ZodOptional<z.ZodEnum<{
|
|
164
|
+
unknown: "unknown";
|
|
165
|
+
custom: "custom";
|
|
166
|
+
native: "native";
|
|
167
|
+
}>>;
|
|
168
|
+
}, z.core.$strip>>>>;
|
|
169
|
+
}, z.core.$strict>>>;
|
|
170
|
+
}, z.core.$strict>>;
|
|
171
|
+
}, z.core.$strict>, unknown>;
|
|
798
172
|
type RegisterPlannedTestInput = z.infer<typeof registerPlannedTestSchema>;
|
|
799
173
|
export interface RegisterTestPlanParams {
|
|
800
174
|
stateFile?: string;
|
|
@@ -842,14 +216,8 @@ export declare function makeSpecFileReader(state: RunState): (relativePath: stri
|
|
|
842
216
|
* `owner/repo` read off the origin remote, so the name is always matchable.
|
|
843
217
|
*/
|
|
844
218
|
export declare function makeScreenRouteResolver(state: RunState): (relativePath: string, repository: string) => string[] | undefined;
|
|
845
|
-
/**
|
|
846
|
-
|
|
847
|
-
* service that was down when it was accepted may be up now. */
|
|
848
|
-
export declare function blockersToProbe(registration: PlanInput, previous?: Plan): PlanBlocker[];
|
|
849
|
-
/** Every fact the verifiers check against, gathered once per registration. The
|
|
850
|
-
* blockers are probed HERE rather than inside a verifier: an HTTP request and a
|
|
851
|
-
* `git` call are both asynchronous and every verifier is not. */
|
|
852
|
-
export declare function buildVerifyContext(state: RunState, blockers?: PlanBlocker[]): Promise<VerifyContext>;
|
|
219
|
+
/** Every fact the verifiers check against, gathered once per registration. */
|
|
220
|
+
export declare function buildVerifyContext(state: RunState): Promise<VerifyContext>;
|
|
853
221
|
/**
|
|
854
222
|
* What the agent reads back. Every objection carries its id so it can be answered,
|
|
855
223
|
* and the text says the plan is stored either way — a objections list without that
|