@skyramp/mcp 0.3.8 → 0.4.0-rc.1
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/commands/commandLibrary.d.ts +1 -1
- package/build/commands/commandLibrary.js +3 -3
- package/build/commands/recommendTestsAndExecuteCommand.d.ts +1 -1
- package/build/commands/recommendTestsAndExecuteCommand.js +35 -20
- package/build/commands/testThisEndpointCommand.js +35 -19
- package/build/index.js +9 -3
- package/build/playwright/blueprintDigest.d.ts +15 -0
- package/build/playwright/blueprintDigest.js +152 -0
- package/build/playwright/blueprintDigestStore.d.ts +31 -0
- package/build/playwright/blueprintDigestStore.js +117 -0
- package/build/playwright/registerPlaywrightTools.js +60 -12
- package/build/playwright/traceRecordingPrompt.js +8 -7
- package/build/prompts/enhance-assertions/sharedAssertionRules.js +9 -8
- package/build/prompts/enhance-assertions/uiAssertionsPrompt.js +24 -2
- package/build/prompts/promptAssets.d.ts +20 -0
- package/build/prompts/promptAssets.js +55 -0
- package/build/prompts/sut-setup/modes/dockerComposePrompt.js +19 -5
- package/build/prompts/test-maintenance/actionsInstructions.d.ts +4 -0
- package/build/prompts/test-maintenance/actionsInstructions.js +14 -2
- package/build/prompts/test-maintenance/drift-analysis-prompt.d.ts +0 -10
- package/build/prompts/test-maintenance/drift-analysis-prompt.js +2 -11
- package/build/prompts/test-maintenance/uiDriftAnalysisSections.js +8 -4
- package/build/prompts/test-recommendation/diffExecutionPlan.d.ts +5 -22
- package/build/prompts/test-recommendation/diffExecutionPlan.js +37 -465
- package/build/prompts/test-recommendation/recommendationSections.d.ts +7 -17
- package/build/prompts/test-recommendation/recommendationSections.js +67 -309
- package/build/prompts/test-recommendation/recommendationShared.d.ts +19 -47
- package/build/prompts/test-recommendation/recommendationShared.js +49 -155
- package/build/prompts/test-recommendation/registerRecommendTestsPrompt.d.ts +0 -5
- package/build/prompts/test-recommendation/registerRecommendTestsPrompt.js +10 -153
- package/build/prompts/test-recommendation/test-recommendation-prompt.d.ts +2 -29
- package/build/prompts/test-recommendation/test-recommendation-prompt.js +32 -457
- package/build/prompts/testbot/planDeclarations.d.ts +6 -0
- package/build/prompts/testbot/planDeclarations.js +9 -0
- package/build/prompts/testbot/testbot-prompts.d.ts +8 -0
- package/build/prompts/testbot/testbot-prompts.js +256 -381
- package/build/recommendation/answers.d.ts +35 -0
- package/build/recommendation/answers.js +96 -0
- package/build/recommendation/registerPlan.d.ts +49 -0
- package/build/recommendation/registerPlan.js +117 -0
- package/build/recommendation/runVerifiers.d.ts +10 -0
- package/build/recommendation/runVerifiers.js +49 -0
- package/build/recommendation/subjectStep.d.ts +42 -0
- package/build/recommendation/subjectStep.js +86 -0
- package/build/recommendation/types.d.ts +163 -0
- package/build/recommendation/types.js +20 -0
- package/build/recommendation/verifierContracts.d.ts +382 -0
- package/build/recommendation/verifierContracts.js +263 -0
- package/build/recommendation/verifiers/changedFile.d.ts +2 -0
- package/build/recommendation/verifiers/changedFile.js +82 -0
- package/build/recommendation/verifiers/citedPath.d.ts +12 -0
- package/build/recommendation/verifiers/citedPath.js +35 -0
- package/build/recommendation/verifiers/coverage.d.ts +7 -0
- package/build/recommendation/verifiers/coverage.js +617 -0
- package/build/recommendation/verifiers/deliveredMatchesPlan.d.ts +11 -0
- package/build/recommendation/verifiers/deliveredMatchesPlan.js +33 -0
- package/build/recommendation/verifiers/endpointGrounded.d.ts +17 -0
- package/build/recommendation/verifiers/endpointGrounded.js +128 -0
- package/build/recommendation/verifiers/existingCoverage.d.ts +6 -0
- package/build/recommendation/verifiers/existingCoverage.js +51 -0
- package/build/recommendation/verifiers/expectedOutcome.d.ts +31 -0
- package/build/recommendation/verifiers/expectedOutcome.js +105 -0
- package/build/recommendation/verifiers/removedElementGuarded.d.ts +2 -0
- package/build/recommendation/verifiers/removedElementGuarded.js +57 -0
- package/build/recommendation/verifiers/reportedCategory.d.ts +26 -0
- package/build/recommendation/verifiers/reportedCategory.js +84 -0
- package/build/recommendation/verifiers/screenRoute.d.ts +10 -0
- package/build/recommendation/verifiers/screenRoute.js +118 -0
- package/build/recommendation/verifiers/statedDifference.d.ts +6 -0
- package/build/recommendation/verifiers/statedDifference.js +140 -0
- package/build/recommendation/verifiers/uiElementGrounded.d.ts +7 -0
- package/build/recommendation/verifiers/uiElementGrounded.js +318 -0
- package/build/resources/analysisResources.js +1 -114
- package/build/resources/testbotResource.js +23 -13
- package/build/services/ModularizationService.js +2 -1
- package/build/services/TestDiscoveryService.d.ts +3 -72
- package/build/services/TestDiscoveryService.js +10 -303
- package/build/services/containerEnv.d.ts +1 -1
- package/build/services/containerEnv.js +12 -0
- package/build/skills/fixTestImportErrorsSkill.d.ts +13 -0
- package/build/skills/fixTestImportErrorsSkill.js +20 -0
- package/build/toolNames.d.ts +1 -0
- package/build/toolNames.js +1 -0
- package/build/tools/code-refactor/enhanceAssertionsTool.js +3 -3
- package/build/tools/code-refactor/modularizationTool.js +2 -1
- package/build/tools/executeSkyrampTestTool.d.ts +80 -0
- package/build/tools/executeSkyrampTestTool.js +246 -19
- package/build/tools/generate-tests/generateBatchScenarioRestTool.js +6 -0
- package/build/tools/generate-tests/generateContractRestTool.js +3 -3
- package/build/tools/generate-tests/planGuard.d.ts +2 -2
- package/build/tools/generate-tests/planGuard.js +78 -18
- package/build/tools/one-click/oneClickTool.d.ts +0 -1
- package/build/tools/one-click/oneClickTool.js +0 -5
- package/build/tools/submitReportTool.d.ts +48 -42
- package/build/tools/submitReportTool.js +576 -193
- package/build/tools/test-management/actionsTool.js +72 -4
- package/build/tools/test-management/analyzeChangesTool.d.ts +144 -48
- package/build/tools/test-management/analyzeChangesTool.js +212 -1219
- package/build/tools/test-management/analyzeTestHealthTool.js +13 -24
- package/build/tools/test-management/index.d.ts +1 -0
- package/build/tools/test-management/index.js +1 -0
- package/build/tools/test-management/registerTestPlanTool.d.ts +795 -172
- package/build/tools/test-management/registerTestPlanTool.js +609 -542
- package/build/tools/test-management/resolveScreenTool.d.ts +75 -0
- package/build/tools/test-management/resolveScreenTool.js +289 -0
- package/build/types/BlueprintDigest.d.ts +34 -0
- package/build/types/BlueprintDigest.js +1 -0
- package/build/types/RepositoryAnalysis.d.ts +20 -1559
- package/build/types/RepositoryAnalysis.js +2 -58
- package/build/types/StepMethod.d.ts +40 -0
- package/build/types/StepMethod.js +77 -0
- package/build/types/TestAnalysis.d.ts +12 -0
- package/build/types/TestExecution.d.ts +4 -0
- package/build/types/TestRecommendation.d.ts +24 -24
- package/build/types/TestRecommendation.js +91 -89
- package/build/types/TestbotPromptOptions.d.ts +0 -4
- package/build/types/TestbotReport.d.ts +64 -2
- package/build/utils/AnalysisStateManager.d.ts +79 -113
- package/build/utils/AnalysisStateManager.js +147 -57
- package/build/utils/assertion-verify/api-shared-lints.js +1 -1
- package/build/utils/assertion-verify/metrics.js +85 -36
- package/build/utils/assertion-verify/ui-lints.d.ts +0 -5
- package/build/utils/assertion-verify/ui-lints.js +32 -0
- package/build/utils/branchDiff.d.ts +63 -31
- package/build/utils/branchDiff.js +242 -94
- package/build/utils/containedPath.d.ts +18 -0
- package/build/utils/containedPath.js +73 -0
- package/build/utils/dartRouteExtractor.d.ts +18 -34
- package/build/utils/dartRouteExtractor.js +101 -173
- package/build/utils/featureFlags.d.ts +12 -0
- package/build/utils/featureFlags.js +14 -0
- package/build/utils/frontendSelectors.d.ts +48 -27
- package/build/utils/frontendSelectors.js +241 -80
- package/build/utils/pathMatching.d.ts +2 -4
- package/build/utils/pathMatching.js +2 -4
- package/build/utils/planMatchKeys.d.ts +38 -47
- package/build/utils/planMatchKeys.js +143 -81
- package/build/utils/rebaselineSnapshots.d.ts +24 -0
- package/build/utils/rebaselineSnapshots.js +65 -0
- package/build/utils/removedUiElements.d.ts +22 -0
- package/build/utils/removedUiElements.js +106 -0
- package/build/utils/reportVerification.d.ts +2 -6
- package/build/utils/reportVerification.js +61 -2
- package/build/utils/screenRoutes.d.ts +66 -0
- package/build/utils/screenRoutes.js +727 -0
- package/build/utils/sourceRouteExtractor.js +320 -112
- package/build/utils/testFileClassification.d.ts +11 -2
- package/build/utils/testFileClassification.js +44 -2
- package/build/utils/testFixtures.d.ts +5 -0
- package/build/utils/testFixtures.js +13 -0
- package/build/utils/utils.d.ts +0 -1
- package/build/utils/utils.js +0 -11
- package/build/utils/versions.d.ts +3 -3
- package/build/utils/versions.js +1 -1
- package/build/workspace/workspace.d.ts +12 -12
- package/node_modules/playwright/lib/mcp/skyramp/assertHiddenTool.js +56 -0
- package/node_modules/playwright/lib/mcp/skyramp/assertTool.js +2 -1
- package/node_modules/playwright/lib/mcp/skyramp/loadTraceTool.js +10 -0
- package/node_modules/playwright/lib/mcp/skyramp/skyRampImport.js +4 -1
- package/node_modules/playwright/lib/mcp/skyramp/traceRecordingBackend.js +160 -1
- package/node_modules/playwright/lib/mcp/test/skyRampExport.js +4 -2
- package/node_modules/playwright/node_modules/playwright-core/lib/server/codegen/skyramp/jsonlReader.js +1 -0
- package/node_modules/playwright/node_modules/playwright-core/lib/server/recorder/recorderSignalProcessor.js +2 -0
- package/node_modules/playwright/node_modules/playwright-core/lib/server/recorder.js +5 -1
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/{index.-Id052Lr.js → index.B7KbSQcC.js} +1 -1
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/index.html +1 -1
- package/node_modules/playwright/node_modules/playwright-core/package.json +1 -1
- package/node_modules/playwright/node_modules/playwright-core/src/server/codegen/skyramp/jsonlReader.ts +1 -1
- package/node_modules/playwright/node_modules/playwright-core/src/server/recorder/recorderSignalProcessor.ts +7 -0
- package/node_modules/playwright/node_modules/playwright-core/src/server/recorder.ts +6 -1
- package/node_modules/playwright/package.json +1 -1
- package/package.json +4 -3
- package/plugin/.claude-plugin/plugin.json +8 -0
- package/plugin/plugin.json +6 -0
- package/plugin/prompts/declaring-a-plan.md +20 -0
- package/plugin/prompts/generate-tests/context-fetching.md +4 -0
- package/plugin/prompts/generate-tests/execution-plan.md +63 -0
- package/plugin/prompts/generate-tests/generation.md +108 -0
- package/plugin/prompts/generate-tests/path-parameters.md +1 -0
- package/plugin/prompts/generate-tests/reasoning-protocol.md +17 -0
- package/plugin/prompts/generate-tests/tool-workflow-variants.md +61 -0
- package/plugin/prompts/generate-tests/tool-workflows.md +65 -0
- package/plugin/prompts/plan-tests.md +42 -0
- package/plugin/prompts/testbot-task1.md +82 -0
- package/plugin/skills/fix-test-import-errors/SKILL.md +98 -0
- package/build/prompts/test-recommendation/analysisOutputPrompt.d.ts +0 -84
- package/build/prompts/test-recommendation/analysisOutputPrompt.js +0 -369
- package/build/prompts/test-recommendation/fullRepoCatalog.d.ts +0 -7
- package/build/prompts/test-recommendation/fullRepoCatalog.js +0 -283
- package/build/prompts/test-recommendation/scopeAssessment.d.ts +0 -81
- package/build/prompts/test-recommendation/scopeAssessment.js +0 -359
- package/build/recommendation/budgeters/diversityBalancedBudgeter.d.ts +0 -7
- package/build/recommendation/budgeters/diversityBalancedBudgeter.js +0 -105
- package/build/recommendation/budgeters/fixedNBudgeter.d.ts +0 -7
- package/build/recommendation/budgeters/fixedNBudgeter.js +0 -11
- package/build/recommendation/budgeters/shared.d.ts +0 -32
- package/build/recommendation/budgeters/shared.js +0 -246
- package/build/recommendation/discriminators.d.ts +0 -37
- package/build/recommendation/discriminators.js +0 -379
- package/build/recommendation/diversity.d.ts +0 -47
- package/build/recommendation/diversity.js +0 -101
- package/build/recommendation/planRanker.d.ts +0 -65
- package/build/recommendation/planRanker.js +0 -83
- package/build/recommendation/testFixtures.d.ts +0 -25
- package/build/recommendation/testFixtures.js +0 -45
- package/build/types/FrontendIntegration.d.ts +0 -28
- package/build/types/FrontendIntegration.js +0 -22
- package/build/types/Recommendation.d.ts +0 -146
- package/build/types/Recommendation.js +0 -74
- package/build/utils/changedRoutes.d.ts +0 -29
- package/build/utils/changedRoutes.js +0 -87
- package/build/utils/frontendIntegration.d.ts +0 -9
- package/build/utils/frontendIntegration.js +0 -243
- package/build/utils/importerHop.d.ts +0 -135
- package/build/utils/importerHop.js +0 -489
- package/build/utils/pathAffinityClassification.d.ts +0 -49
- package/build/utils/pathAffinityClassification.js +0 -180
- package/build/utils/pythonMountPrefixes.d.ts +0 -25
- package/build/utils/pythonMountPrefixes.js +0 -347
- package/build/utils/repoScanner.d.ts +0 -34
- package/build/utils/repoScanner.js +0 -300
- package/build/utils/routeParsers.d.ts +0 -95
- package/build/utils/routeParsers.js +0 -951
- package/build/utils/scenarioDrafting.d.ts +0 -92
- package/build/utils/scenarioDrafting.js +0 -951
- package/build/utils/subjectEndpoints.d.ts +0 -19
- package/build/utils/subjectEndpoints.js +0 -98
- package/build/utils/uiPageEnumerator.d.ts +0 -172
- package/build/utils/uiPageEnumerator.js +0 -474
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { TestType
|
|
3
|
+
import { TestType } from "../types/TestTypes.js";
|
|
4
4
|
/**
|
|
5
5
|
* Filename of the report, written beside the state file. SKYR-4147: the report path is
|
|
6
6
|
* derived here rather than accepted as a parameter. The caller builds the state file and
|
|
@@ -52,8 +52,9 @@ export declare const pageContextSchema: z.ZodObject<{
|
|
|
52
52
|
}>;
|
|
53
53
|
export declare const newTestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
54
54
|
testId: z.ZodString;
|
|
55
|
+
plannedTestId: z.ZodOptional<z.ZodString>;
|
|
55
56
|
testType: z.ZodNativeEnum<typeof TestType>;
|
|
56
|
-
category: z.
|
|
57
|
+
category: z.ZodEnum<["new_endpoint", "bug_caught", "requirement_conflict", "business_rule", "security_boundary", "data_integrity", "breaking_change", "auth", "error_handling", "workflow", "data_validation", "crud"]>;
|
|
57
58
|
endpoint: z.ZodString;
|
|
58
59
|
fileName: z.ZodString;
|
|
59
60
|
description: z.ZodString;
|
|
@@ -100,12 +101,13 @@ export declare const newTestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
100
101
|
}, "strip", z.ZodTypeAny, {
|
|
101
102
|
description: string;
|
|
102
103
|
testType: TestType;
|
|
103
|
-
category: "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
104
|
-
fileName: string;
|
|
105
104
|
endpoint: string;
|
|
105
|
+
category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
106
|
+
fileName: string;
|
|
106
107
|
testId: string;
|
|
107
108
|
reasoning: string;
|
|
108
109
|
repository?: string | undefined;
|
|
110
|
+
plannedTestId?: string | undefined;
|
|
109
111
|
traceFile?: string | undefined;
|
|
110
112
|
scenarioFile?: string | undefined;
|
|
111
113
|
targetElements?: {
|
|
@@ -125,12 +127,13 @@ export declare const newTestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
125
127
|
}, {
|
|
126
128
|
description: string;
|
|
127
129
|
testType: TestType;
|
|
128
|
-
fileName: string;
|
|
129
130
|
endpoint: string;
|
|
131
|
+
category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
132
|
+
fileName: string;
|
|
130
133
|
testId: string;
|
|
131
134
|
reasoning: string;
|
|
132
135
|
repository?: string | undefined;
|
|
133
|
-
|
|
136
|
+
plannedTestId?: string | undefined;
|
|
134
137
|
traceFile?: string | undefined;
|
|
135
138
|
scenarioFile?: string | undefined;
|
|
136
139
|
targetElements?: {
|
|
@@ -150,12 +153,13 @@ export declare const newTestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
150
153
|
}>, {
|
|
151
154
|
description: string;
|
|
152
155
|
testType: TestType;
|
|
153
|
-
category: "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
154
|
-
fileName: string;
|
|
155
156
|
endpoint: string;
|
|
157
|
+
category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
158
|
+
fileName: string;
|
|
156
159
|
testId: string;
|
|
157
160
|
reasoning: string;
|
|
158
161
|
repository?: string | undefined;
|
|
162
|
+
plannedTestId?: string | undefined;
|
|
159
163
|
traceFile?: string | undefined;
|
|
160
164
|
scenarioFile?: string | undefined;
|
|
161
165
|
targetElements?: {
|
|
@@ -175,12 +179,13 @@ export declare const newTestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
175
179
|
}, {
|
|
176
180
|
description: string;
|
|
177
181
|
testType: TestType;
|
|
178
|
-
fileName: string;
|
|
179
182
|
endpoint: string;
|
|
183
|
+
category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
184
|
+
fileName: string;
|
|
180
185
|
testId: string;
|
|
181
186
|
reasoning: string;
|
|
182
187
|
repository?: string | undefined;
|
|
183
|
-
|
|
188
|
+
plannedTestId?: string | undefined;
|
|
184
189
|
traceFile?: string | undefined;
|
|
185
190
|
scenarioFile?: string | undefined;
|
|
186
191
|
targetElements?: {
|
|
@@ -200,12 +205,13 @@ export declare const newTestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
200
205
|
}>, {
|
|
201
206
|
description: string;
|
|
202
207
|
testType: TestType;
|
|
203
|
-
category: "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
204
|
-
fileName: string;
|
|
205
208
|
endpoint: string;
|
|
209
|
+
category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
210
|
+
fileName: string;
|
|
206
211
|
testId: string;
|
|
207
212
|
reasoning: string;
|
|
208
213
|
repository?: string | undefined;
|
|
214
|
+
plannedTestId?: string | undefined;
|
|
209
215
|
traceFile?: string | undefined;
|
|
210
216
|
scenarioFile?: string | undefined;
|
|
211
217
|
targetElements?: {
|
|
@@ -226,11 +232,11 @@ export declare const newTestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
226
232
|
export declare const additionalRecommendationSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
227
233
|
testId: z.ZodString;
|
|
228
234
|
testType: z.ZodNativeEnum<typeof TestType>;
|
|
229
|
-
category: z.
|
|
235
|
+
category: z.ZodEnum<["new_endpoint", "bug_caught", "requirement_conflict", "business_rule", "security_boundary", "data_integrity", "breaking_change", "auth", "error_handling", "workflow", "data_validation", "crud"]>;
|
|
230
236
|
primaryEndpoint: z.ZodOptional<z.ZodString>;
|
|
231
237
|
scenarioName: z.ZodOptional<z.ZodString>;
|
|
232
|
-
steps: z.ZodArray<z.ZodObject<{
|
|
233
|
-
method: z.ZodOptional<z.
|
|
238
|
+
steps: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
239
|
+
method: z.ZodOptional<z.ZodEffects<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS", "TRACE", "CONNECT", "assert", "click", "drag", "drag-hold", "hover", "inspect", "navigate", "press", "release", "tap", "type", "wait", "OPERATION"]>, "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | "type" | "TRACE" | "CONNECT" | "assert" | "click" | "drag" | "drag-hold" | "hover" | "inspect" | "navigate" | "press" | "release" | "tap" | "wait" | "OPERATION", unknown>>;
|
|
234
240
|
path: z.ZodOptional<z.ZodString>;
|
|
235
241
|
description: z.ZodString;
|
|
236
242
|
expectedStatusCode: z.ZodOptional<z.ZodNumber>;
|
|
@@ -239,18 +245,18 @@ export declare const additionalRecommendationSchema: z.ZodEffects<z.ZodEffects<z
|
|
|
239
245
|
}, "strip", z.ZodTypeAny, {
|
|
240
246
|
description: string;
|
|
241
247
|
path?: string | undefined;
|
|
242
|
-
method?:
|
|
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" | undefined;
|
|
243
249
|
requestBody?: Record<string, any> | undefined;
|
|
244
250
|
responseBody?: any[] | Record<string, any> | undefined;
|
|
245
251
|
expectedStatusCode?: number | undefined;
|
|
246
252
|
}, {
|
|
247
253
|
description: string;
|
|
248
254
|
path?: string | undefined;
|
|
249
|
-
method?:
|
|
255
|
+
method?: unknown;
|
|
250
256
|
requestBody?: Record<string, any> | undefined;
|
|
251
257
|
responseBody?: any[] | Record<string, any> | undefined;
|
|
252
258
|
expectedStatusCode?: number | undefined;
|
|
253
|
-
}>, "many"
|
|
259
|
+
}>, "many">>>;
|
|
254
260
|
description: z.ZodString;
|
|
255
261
|
priority: z.ZodEffects<z.ZodEnum<["high", "medium", "low"]>, "high" | "medium" | "low", unknown>;
|
|
256
262
|
openApiSpec: z.ZodOptional<z.ZodString>;
|
|
@@ -297,11 +303,11 @@ export declare const additionalRecommendationSchema: z.ZodEffects<z.ZodEffects<z
|
|
|
297
303
|
description: string;
|
|
298
304
|
priority: "high" | "medium" | "low";
|
|
299
305
|
testType: TestType;
|
|
300
|
-
category: "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
306
|
+
category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
301
307
|
steps: {
|
|
302
308
|
description: string;
|
|
303
309
|
path?: string | undefined;
|
|
304
|
-
method?:
|
|
310
|
+
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | "type" | "TRACE" | "CONNECT" | "assert" | "click" | "drag" | "drag-hold" | "hover" | "inspect" | "navigate" | "press" | "release" | "tap" | "wait" | "OPERATION" | undefined;
|
|
305
311
|
requestBody?: Record<string, any> | undefined;
|
|
306
312
|
responseBody?: any[] | Record<string, any> | undefined;
|
|
307
313
|
expectedStatusCode?: number | undefined;
|
|
@@ -330,20 +336,20 @@ export declare const additionalRecommendationSchema: z.ZodEffects<z.ZodEffects<z
|
|
|
330
336
|
}, {
|
|
331
337
|
description: string;
|
|
332
338
|
testType: TestType;
|
|
333
|
-
|
|
334
|
-
description: string;
|
|
335
|
-
path?: string | undefined;
|
|
336
|
-
method?: HttpMethod | undefined;
|
|
337
|
-
requestBody?: Record<string, any> | undefined;
|
|
338
|
-
responseBody?: any[] | Record<string, any> | undefined;
|
|
339
|
-
expectedStatusCode?: number | undefined;
|
|
340
|
-
}[];
|
|
339
|
+
category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
341
340
|
testId: string;
|
|
342
341
|
reasoning: string;
|
|
343
342
|
priority?: unknown;
|
|
344
343
|
repository?: string | undefined;
|
|
345
344
|
scenarioName?: string | undefined;
|
|
346
|
-
|
|
345
|
+
steps?: {
|
|
346
|
+
description: string;
|
|
347
|
+
path?: string | undefined;
|
|
348
|
+
method?: unknown;
|
|
349
|
+
requestBody?: Record<string, any> | undefined;
|
|
350
|
+
responseBody?: any[] | Record<string, any> | undefined;
|
|
351
|
+
expectedStatusCode?: number | undefined;
|
|
352
|
+
}[] | undefined;
|
|
347
353
|
targetElements?: {
|
|
348
354
|
role: string;
|
|
349
355
|
accessibleName: string;
|
|
@@ -365,11 +371,11 @@ export declare const additionalRecommendationSchema: z.ZodEffects<z.ZodEffects<z
|
|
|
365
371
|
description: string;
|
|
366
372
|
priority: "high" | "medium" | "low";
|
|
367
373
|
testType: TestType;
|
|
368
|
-
category: "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
374
|
+
category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
369
375
|
steps: {
|
|
370
376
|
description: string;
|
|
371
377
|
path?: string | undefined;
|
|
372
|
-
method?:
|
|
378
|
+
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | "type" | "TRACE" | "CONNECT" | "assert" | "click" | "drag" | "drag-hold" | "hover" | "inspect" | "navigate" | "press" | "release" | "tap" | "wait" | "OPERATION" | undefined;
|
|
373
379
|
requestBody?: Record<string, any> | undefined;
|
|
374
380
|
responseBody?: any[] | Record<string, any> | undefined;
|
|
375
381
|
expectedStatusCode?: number | undefined;
|
|
@@ -398,20 +404,20 @@ export declare const additionalRecommendationSchema: z.ZodEffects<z.ZodEffects<z
|
|
|
398
404
|
}, {
|
|
399
405
|
description: string;
|
|
400
406
|
testType: TestType;
|
|
401
|
-
|
|
402
|
-
description: string;
|
|
403
|
-
path?: string | undefined;
|
|
404
|
-
method?: HttpMethod | undefined;
|
|
405
|
-
requestBody?: Record<string, any> | undefined;
|
|
406
|
-
responseBody?: any[] | Record<string, any> | undefined;
|
|
407
|
-
expectedStatusCode?: number | undefined;
|
|
408
|
-
}[];
|
|
407
|
+
category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
409
408
|
testId: string;
|
|
410
409
|
reasoning: string;
|
|
411
410
|
priority?: unknown;
|
|
412
411
|
repository?: string | undefined;
|
|
413
412
|
scenarioName?: string | undefined;
|
|
414
|
-
|
|
413
|
+
steps?: {
|
|
414
|
+
description: string;
|
|
415
|
+
path?: string | undefined;
|
|
416
|
+
method?: unknown;
|
|
417
|
+
requestBody?: Record<string, any> | undefined;
|
|
418
|
+
responseBody?: any[] | Record<string, any> | undefined;
|
|
419
|
+
expectedStatusCode?: number | undefined;
|
|
420
|
+
}[] | undefined;
|
|
415
421
|
targetElements?: {
|
|
416
422
|
role: string;
|
|
417
423
|
accessibleName: string;
|
|
@@ -433,11 +439,11 @@ export declare const additionalRecommendationSchema: z.ZodEffects<z.ZodEffects<z
|
|
|
433
439
|
description: string;
|
|
434
440
|
priority: "high" | "medium" | "low";
|
|
435
441
|
testType: TestType;
|
|
436
|
-
category: "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
442
|
+
category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
437
443
|
steps: {
|
|
438
444
|
description: string;
|
|
439
445
|
path?: string | undefined;
|
|
440
|
-
method?:
|
|
446
|
+
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | "type" | "TRACE" | "CONNECT" | "assert" | "click" | "drag" | "drag-hold" | "hover" | "inspect" | "navigate" | "press" | "release" | "tap" | "wait" | "OPERATION" | undefined;
|
|
441
447
|
requestBody?: Record<string, any> | undefined;
|
|
442
448
|
responseBody?: any[] | Record<string, any> | undefined;
|
|
443
449
|
expectedStatusCode?: number | undefined;
|