@skyramp/mcp 0.4.3 → 0.4.4-rc.2

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.
Files changed (168) hide show
  1. package/build/index.js +239 -210
  2. package/build/playwright/PlaywrightTraceService.d.ts +1 -1
  3. package/build/playwright/blueprintDigestStore.d.ts +1 -1
  4. package/build/playwright/registerPlaywrightTools.d.ts +1 -1
  5. package/build/playwright/traceRecordingPrompt.d.ts +1 -1
  6. package/build/playwright/traceRecordingPrompt.js +4 -3
  7. package/build/prompts/local-dev/local-dev-prompts.d.ts +1 -1
  8. package/build/prompts/local-dev/local-dev-prompts.js +2 -2
  9. package/build/prompts/orderAssertionRule.d.ts +9 -0
  10. package/build/prompts/orderAssertionRule.js +9 -0
  11. package/build/prompts/startTraceCollectionPrompts.d.ts +1 -1
  12. package/build/prompts/startTraceCollectionPrompts.js +2 -3
  13. package/build/prompts/test-maintenance/driftAnalysisShared.js +2 -0
  14. package/build/prompts/test-recommendation/registerRecommendTestsPrompt.d.ts +1 -1
  15. package/build/prompts/test-recommendation/registerRecommendTestsPrompt.js +2 -2
  16. package/build/prompts/testbot/testbot-prompts.d.ts +1 -1
  17. package/build/prompts/testbot/testbot-prompts.js +9 -9
  18. package/build/recommendation/answers.d.ts +3 -3
  19. package/build/recommendation/answers.js +3 -2
  20. package/build/recommendation/verifierContracts.d.ts +4 -4
  21. package/build/recommendation/verifierContracts.js +6 -5
  22. package/build/recommendation/verifiers/coverage.js +25 -25
  23. package/build/recommendation/verifiers/deliveredMatchesPlan.js +3 -3
  24. package/build/resources/analysisResources.d.ts +1 -1
  25. package/build/resources/analysisResources.js +1 -1
  26. package/build/resources/progressResource.d.ts +1 -1
  27. package/build/resources/sutSetupResource.d.ts +1 -1
  28. package/build/resources/sutSetupResource.js +1 -1
  29. package/build/resources/testbotResource.d.ts +1 -1
  30. package/build/resources/testbotResource.js +1 -1
  31. package/build/services/AnalyticsService.d.ts +1 -1
  32. package/build/services/FleetExecutionService.d.ts +130 -0
  33. package/build/services/FleetExecutionService.js +391 -0
  34. package/build/services/ModularizationService.d.ts +1 -1
  35. package/build/services/TestExecutionService.d.ts +7 -0
  36. package/build/services/TestExecutionService.js +21 -0
  37. package/build/services/TestGenerationService.d.ts +1 -1
  38. package/build/tool-phases.js +2 -0
  39. package/build/tools/auth/loginTool.d.ts +1 -1
  40. package/build/tools/auth/loginTool.js +2 -2
  41. package/build/tools/auth/logoutTool.d.ts +1 -1
  42. package/build/tools/auth/logoutTool.js +2 -2
  43. package/build/tools/code-refactor/alignAssertionsTool.d.ts +1 -1
  44. package/build/tools/code-refactor/alignAssertionsTool.js +1 -1
  45. package/build/tools/code-refactor/assertionSkillTools.d.ts +1 -1
  46. package/build/tools/code-refactor/assertionSkillTools.js +2 -2
  47. package/build/tools/code-refactor/codeReuseTool.d.ts +1 -1
  48. package/build/tools/code-refactor/codeReuseTool.js +2 -2
  49. package/build/tools/code-refactor/enhanceAssertionsTool.d.ts +1 -1
  50. package/build/tools/code-refactor/enhanceAssertionsTool.js +1 -1
  51. package/build/tools/code-refactor/modularizationTool.d.ts +1 -1
  52. package/build/tools/code-refactor/modularizationTool.js +2 -2
  53. package/build/tools/enrichTestWithMocksTool.d.ts +1 -1
  54. package/build/tools/enrichTestWithMocksTool.js +2 -2
  55. package/build/tools/executeFleetTool.d.ts +28 -0
  56. package/build/tools/executeFleetTool.js +107 -0
  57. package/build/tools/executeSkyrampTestTool.d.ts +8 -5
  58. package/build/tools/executeSkyrampTestTool.js +13 -5
  59. package/build/tools/fixErrorTool.d.ts +1 -1
  60. package/build/tools/fixErrorTool.js +1 -1
  61. package/build/tools/generate-tests/batchMockGenerationTool.d.ts +6 -57
  62. package/build/tools/generate-tests/batchMockGenerationTool.js +3 -3
  63. package/build/tools/generate-tests/generateBatchScenarioRestTool.d.ts +9 -45
  64. package/build/tools/generate-tests/generateBatchScenarioRestTool.js +29 -11
  65. package/build/tools/generate-tests/generateContractRestTool.d.ts +1 -2
  66. package/build/tools/generate-tests/generateContractRestTool.js +1 -1
  67. package/build/tools/generate-tests/generateE2ERestTool.d.ts +2 -2
  68. package/build/tools/generate-tests/generateE2ERestTool.js +10 -2
  69. package/build/tools/generate-tests/generateFuzzRestTool.d.ts +1 -1
  70. package/build/tools/generate-tests/generateFuzzRestTool.js +1 -1
  71. package/build/tools/generate-tests/generateIntegrationRestTool.d.ts +1 -2
  72. package/build/tools/generate-tests/generateIntegrationRestTool.js +1 -1
  73. package/build/tools/generate-tests/generateLoadRestTool.d.ts +1 -2
  74. package/build/tools/generate-tests/generateLoadRestTool.js +2 -1
  75. package/build/tools/generate-tests/generateMockRestTool.d.ts +1 -2
  76. package/build/tools/generate-tests/generateMockRestTool.js +3 -3
  77. package/build/tools/generate-tests/generateSmokeRestTool.d.ts +1 -1
  78. package/build/tools/generate-tests/generateSmokeRestTool.js +1 -1
  79. package/build/tools/generate-tests/generateUILoadRestTool.d.ts +64 -0
  80. package/build/tools/generate-tests/generateUILoadRestTool.js +512 -0
  81. package/build/tools/generate-tests/generateUIRestTool.d.ts +8 -7
  82. package/build/tools/generate-tests/generateUIRestTool.js +10 -2
  83. package/build/tools/generate-tests/loadTestSchema.d.ts +15 -15
  84. package/build/tools/generate-tests/trace-reuse-guard.d.ts +1 -1
  85. package/build/tools/generateEnrichedIntegrationTestTool.d.ts +1 -2
  86. package/build/tools/generateEnrichedIntegrationTestTool.js +1 -1
  87. package/build/tools/localDevWorkerComposeTool.d.ts +1 -1
  88. package/build/tools/localDevWorkerComposeTool.js +2 -2
  89. package/build/tools/one-click/oneClickTool.d.ts +1 -1
  90. package/build/tools/one-click/oneClickTool.js +1 -1
  91. package/build/tools/preflightMockCheckTool.d.ts +1 -1
  92. package/build/tools/preflightMockCheckTool.js +3 -3
  93. package/build/tools/queryProxyMocksTool.d.ts +1 -1
  94. package/build/tools/queryProxyMocksTool.js +3 -3
  95. package/build/tools/submitReportTool.d.ts +111 -414
  96. package/build/tools/submitReportTool.js +88 -38
  97. package/build/tools/test-management/actionsTool.d.ts +1 -1
  98. package/build/tools/test-management/actionsTool.js +7 -7
  99. package/build/tools/test-management/analyzeChangesTool.d.ts +22 -118
  100. package/build/tools/test-management/analyzeChangesTool.js +4 -4
  101. package/build/tools/test-management/analyzeTestHealthTool.d.ts +1 -1
  102. package/build/tools/test-management/analyzeTestHealthTool.js +4 -4
  103. package/build/tools/test-management/registerTestPlanTool.d.ts +107 -733
  104. package/build/tools/test-management/registerTestPlanTool.js +12 -12
  105. package/build/tools/test-management/resolveScreenTool.d.ts +1 -1
  106. package/build/tools/test-management/resolveScreenTool.js +6 -2
  107. package/build/tools/trace/startTraceCollectionTool.d.ts +1 -1
  108. package/build/tools/trace/startTraceCollectionTool.js +4 -4
  109. package/build/tools/trace/stopTraceCollectionTool.d.ts +1 -1
  110. package/build/tools/trace/stopTraceCollectionTool.js +2 -2
  111. package/build/tools/verifyTestDependenciesTool.d.ts +1 -1
  112. package/build/tools/verifyTestDependenciesTool.js +1 -1
  113. package/build/tools/workspace/initScanWorkspaceTool.d.ts +1 -1
  114. package/build/tools/workspace/initScanWorkspaceTool.js +1 -1
  115. package/build/tools/workspace/initializeWorkspaceTool.d.ts +1 -1
  116. package/build/tools/workspace/initializeWorkspaceTool.js +1 -1
  117. package/build/types/RepositoryAnalysis.d.ts +164 -1170
  118. package/build/types/RepositoryAnalysis.js +12 -10
  119. package/build/types/StepMethod.d.ts +24 -1
  120. package/build/types/StepMethod.js +1 -1
  121. package/build/types/TestTypes.d.ts +41 -133
  122. package/build/types/TestTypes.js +25 -3
  123. package/build/types/TestbotReport.d.ts +4 -1
  124. package/build/utils/assertion-verify/metrics.js +12 -0
  125. package/build/utils/docker.d.ts +29 -7
  126. package/build/utils/docker.js +83 -27
  127. package/build/utils/findUp.d.ts +20 -0
  128. package/build/utils/findUp.js +59 -0
  129. package/build/utils/initAgent.d.ts +3 -3
  130. package/build/utils/initAgent.js +58 -26
  131. package/build/utils/language-helper.js +1 -1
  132. package/build/utils/progress.d.ts +3 -4
  133. package/build/utils/progress.js +4 -4
  134. package/build/utils/repoSdkVersion.d.ts +16 -0
  135. package/build/utils/repoSdkVersion.js +88 -0
  136. package/build/utils/testDependencyPolicy.d.ts +20 -0
  137. package/build/utils/testDependencyPolicy.js +64 -4
  138. package/build/utils/utils-verify/typecheck.js +3 -18
  139. package/build/utils/utils.d.ts +1 -1
  140. package/build/utils/versions.d.ts +3 -3
  141. package/build/utils/versions.js +1 -1
  142. package/build/workspace/workspace.d.ts +117 -538
  143. package/build/workspace/workspace.js +2 -2
  144. package/node_modules/playwright/lib/mcp/skyramp/assertOrder.js +66 -0
  145. package/node_modules/playwright/lib/mcp/skyramp/assertTool.js +12 -3
  146. package/node_modules/playwright/lib/mcp/skyramp/common/liveReadError.js +40 -0
  147. package/node_modules/playwright/lib/mcp/skyramp/loadTraceTool.js +21 -0
  148. package/node_modules/playwright/lib/mcp/skyramp/skyRampImport.js +2 -1
  149. package/node_modules/playwright/lib/mcp/skyramp/traceRecordingBackend.js +96 -16
  150. package/node_modules/playwright/lib/mcp/test/skyRampExport.js +10 -0
  151. package/node_modules/playwright/node_modules/playwright-core/lib/server/codegen/skyramp/jsonlReader.js +1 -0
  152. package/node_modules/playwright/node_modules/playwright-core/lib/server/recorder/recorderRunner.js +22 -0
  153. package/node_modules/playwright/node_modules/playwright-core/lib/utils/isomorphic/elementOrder.js +57 -0
  154. package/node_modules/playwright/node_modules/playwright-core/lib/utils.js +2 -0
  155. package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/{index.uiPTFncY.js → index.0MJW0uG7.js} +1 -1
  156. package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/index.html +1 -1
  157. package/node_modules/playwright/node_modules/playwright-core/package.json +1 -1
  158. package/node_modules/playwright/node_modules/playwright-core/src/server/codegen/skyramp/jsonlReader.ts +1 -1
  159. package/node_modules/playwright/node_modules/playwright-core/src/server/recorder/recorderRunner.ts +26 -1
  160. package/node_modules/playwright/node_modules/playwright-core/src/utils/isomorphic/elementOrder.ts +83 -0
  161. package/node_modules/playwright/node_modules/playwright-core/src/utils.ts +1 -0
  162. package/node_modules/playwright/package.json +1 -1
  163. package/package.json +9 -6
  164. package/plugin/prompts/plan-tests.md +9 -17
  165. package/plugin/skills/enhance-assertions/reference/shared-rules.md +1 -1
  166. package/plugin/skills/enhance-assertions/reference/ui.md +2 -2
  167. package/plugin/skills/fix-test-import-errors/SKILL.md +1 -1
  168. package/plugin/skills/repair-staged-files/SKILL.md +17 -0
@@ -1,4 +1,4 @@
1
- import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
1
+ import { McpServer } from "@modelcontextprotocol/server";
2
2
  import { z } from "zod";
3
3
  import { TestType } from "../types/TestTypes.js";
4
4
  /**
@@ -18,43 +18,42 @@ export declare const REPORT_FILE_NAME = "testbot-result.txt";
18
18
  export declare const targetElementSchema: z.ZodObject<{
19
19
  role: z.ZodString;
20
20
  accessibleName: z.ZodString;
21
- testId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
22
- stableId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
23
- contextText: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>, string[] | null, string[] | null | undefined>;
24
- mutability: z.ZodOptional<z.ZodEnum<["mutable", "immutable", "unknown"]>>;
25
- widgetType: z.ZodOptional<z.ZodEnum<["native", "custom", "unknown"]>>;
26
- }, "strip", z.ZodTypeAny, {
27
- role: string;
28
- accessibleName: string;
29
- testId: string | null;
30
- stableId: string | null;
31
- contextText: string[] | null;
32
- mutability?: "unknown" | "mutable" | "immutable" | undefined;
33
- widgetType?: "unknown" | "custom" | "native" | undefined;
34
- }, {
35
- role: string;
36
- accessibleName: string;
37
- testId?: string | null | undefined;
38
- stableId?: string | null | undefined;
39
- contextText?: string[] | null | undefined;
40
- mutability?: "unknown" | "mutable" | "immutable" | undefined;
41
- widgetType?: "unknown" | "custom" | "native" | undefined;
42
- }>;
21
+ testId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
22
+ stableId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
23
+ contextText: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>, z.ZodTransform<string[] | null, string[] | null | undefined>>;
24
+ mutability: z.ZodOptional<z.ZodEnum<{
25
+ unknown: "unknown";
26
+ mutable: "mutable";
27
+ immutable: "immutable";
28
+ }>>;
29
+ widgetType: z.ZodOptional<z.ZodEnum<{
30
+ unknown: "unknown";
31
+ custom: "custom";
32
+ native: "native";
33
+ }>>;
34
+ }, z.core.$strip>;
43
35
  export declare const pageContextSchema: z.ZodObject<{
44
36
  url: z.ZodString;
45
37
  pageHash: z.ZodOptional<z.ZodString>;
46
- }, "strip", z.ZodTypeAny, {
47
- url: string;
48
- pageHash?: string | undefined;
49
- }, {
50
- url: string;
51
- pageHash?: string | undefined;
52
- }>;
53
- export declare const newTestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
38
+ }, z.core.$strip>;
39
+ export declare const newTestSchema: z.ZodPreprocess<z.ZodObject<{
54
40
  testId: z.ZodString;
55
41
  plannedTestId: z.ZodOptional<z.ZodString>;
56
- testType: z.ZodNativeEnum<typeof TestType>;
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"]>;
42
+ testType: z.ZodEnum<typeof TestType>;
43
+ category: z.ZodEnum<{
44
+ new_endpoint: "new_endpoint";
45
+ bug_caught: "bug_caught";
46
+ requirement_conflict: "requirement_conflict";
47
+ business_rule: "business_rule";
48
+ security_boundary: "security_boundary";
49
+ data_integrity: "data_integrity";
50
+ breaking_change: "breaking_change";
51
+ auth: "auth";
52
+ error_handling: "error_handling";
53
+ workflow: "workflow";
54
+ data_validation: "data_validation";
55
+ crud: "crud";
56
+ }>;
58
57
  endpoint: z.ZodString;
59
58
  fileName: z.ZodString;
60
59
  description: z.ZodString;
@@ -66,199 +65,81 @@ export declare const newTestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
66
65
  targetElements: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
67
66
  role: z.ZodString;
68
67
  accessibleName: z.ZodString;
69
- testId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
70
- stableId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
71
- contextText: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>, string[] | null, string[] | null | undefined>;
72
- mutability: z.ZodOptional<z.ZodEnum<["mutable", "immutable", "unknown"]>>;
73
- widgetType: z.ZodOptional<z.ZodEnum<["native", "custom", "unknown"]>>;
74
- }, "strip", z.ZodTypeAny, {
75
- role: string;
76
- accessibleName: string;
77
- testId: string | null;
78
- stableId: string | null;
79
- contextText: string[] | null;
80
- mutability?: "unknown" | "mutable" | "immutable" | undefined;
81
- widgetType?: "unknown" | "custom" | "native" | undefined;
82
- }, {
83
- role: string;
84
- accessibleName: string;
85
- testId?: string | null | undefined;
86
- stableId?: string | null | undefined;
87
- contextText?: string[] | null | undefined;
88
- mutability?: "unknown" | "mutable" | "immutable" | undefined;
89
- widgetType?: "unknown" | "custom" | "native" | undefined;
90
- }>, "many">>>;
68
+ testId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
69
+ stableId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
70
+ contextText: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>, z.ZodTransform<string[] | null, string[] | null | undefined>>;
71
+ mutability: z.ZodOptional<z.ZodEnum<{
72
+ unknown: "unknown";
73
+ mutable: "mutable";
74
+ immutable: "immutable";
75
+ }>>;
76
+ widgetType: z.ZodOptional<z.ZodEnum<{
77
+ unknown: "unknown";
78
+ custom: "custom";
79
+ native: "native";
80
+ }>>;
81
+ }, z.core.$strip>>>>;
91
82
  pageContext: z.ZodOptional<z.ZodObject<{
92
83
  url: z.ZodString;
93
84
  pageHash: z.ZodOptional<z.ZodString>;
94
- }, "strip", z.ZodTypeAny, {
95
- url: string;
96
- pageHash?: string | undefined;
97
- }, {
98
- url: string;
99
- pageHash?: string | undefined;
100
- }>>;
101
- }, "strip", z.ZodTypeAny, {
102
- description: string;
103
- repository: string;
104
- testType: TestType;
105
- endpoint: string;
106
- category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
107
- fileName: string;
108
- testId: string;
109
- reasoning: string;
110
- plannedTestId?: string | undefined;
111
- traceFile?: string | undefined;
112
- scenarioFile?: string | undefined;
113
- targetElements?: {
114
- role: string;
115
- accessibleName: string;
116
- testId: string | null;
117
- stableId: string | null;
118
- contextText: string[] | null;
119
- mutability?: "unknown" | "mutable" | "immutable" | undefined;
120
- widgetType?: "unknown" | "custom" | "native" | undefined;
121
- }[] | null | undefined;
122
- pageContext?: {
123
- url: string;
124
- pageHash?: string | undefined;
125
- } | undefined;
126
- frontendTrace?: string | undefined;
127
- }, {
128
- description: string;
129
- repository: string;
130
- testType: TestType;
131
- endpoint: string;
132
- category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
133
- fileName: string;
134
- testId: string;
135
- reasoning: string;
136
- plannedTestId?: string | undefined;
137
- traceFile?: string | undefined;
138
- scenarioFile?: string | undefined;
139
- targetElements?: {
140
- role: string;
141
- accessibleName: string;
142
- testId?: string | null | undefined;
143
- stableId?: string | null | undefined;
144
- contextText?: string[] | null | undefined;
145
- mutability?: "unknown" | "mutable" | "immutable" | undefined;
146
- widgetType?: "unknown" | "custom" | "native" | undefined;
147
- }[] | null | undefined;
148
- pageContext?: {
149
- url: string;
150
- pageHash?: string | undefined;
151
- } | undefined;
152
- frontendTrace?: string | undefined;
153
- }>, {
154
- description: string;
155
- repository: string;
156
- testType: TestType;
157
- endpoint: string;
158
- category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
159
- fileName: string;
160
- testId: string;
161
- reasoning: string;
162
- plannedTestId?: string | undefined;
163
- traceFile?: string | undefined;
164
- scenarioFile?: string | undefined;
165
- targetElements?: {
166
- role: string;
167
- accessibleName: string;
168
- testId: string | null;
169
- stableId: string | null;
170
- contextText: string[] | null;
171
- mutability?: "unknown" | "mutable" | "immutable" | undefined;
172
- widgetType?: "unknown" | "custom" | "native" | undefined;
173
- }[] | null | undefined;
174
- pageContext?: {
175
- url: string;
176
- pageHash?: string | undefined;
177
- } | undefined;
178
- frontendTrace?: string | undefined;
179
- }, {
180
- description: string;
181
- repository: string;
182
- testType: TestType;
183
- endpoint: string;
184
- category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
185
- fileName: string;
186
- testId: string;
187
- reasoning: string;
188
- plannedTestId?: string | undefined;
189
- traceFile?: string | undefined;
190
- scenarioFile?: string | undefined;
191
- targetElements?: {
192
- role: string;
193
- accessibleName: string;
194
- testId?: string | null | undefined;
195
- stableId?: string | null | undefined;
196
- contextText?: string[] | null | undefined;
197
- mutability?: "unknown" | "mutable" | "immutable" | undefined;
198
- widgetType?: "unknown" | "custom" | "native" | undefined;
199
- }[] | null | undefined;
200
- pageContext?: {
201
- url: string;
202
- pageHash?: string | undefined;
203
- } | undefined;
204
- frontendTrace?: string | undefined;
205
- }>, {
206
- description: string;
207
- repository: string;
208
- testType: TestType;
209
- endpoint: string;
210
- category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
211
- fileName: string;
212
- testId: string;
213
- reasoning: string;
214
- plannedTestId?: string | undefined;
215
- traceFile?: string | undefined;
216
- scenarioFile?: string | undefined;
217
- targetElements?: {
218
- role: string;
219
- accessibleName: string;
220
- testId: string | null;
221
- stableId: string | null;
222
- contextText: string[] | null;
223
- mutability?: "unknown" | "mutable" | "immutable" | undefined;
224
- widgetType?: "unknown" | "custom" | "native" | undefined;
225
- }[] | null | undefined;
226
- pageContext?: {
227
- url: string;
228
- pageHash?: string | undefined;
229
- } | undefined;
230
- frontendTrace?: string | undefined;
231
- }, unknown>;
232
- export declare const additionalRecommendationSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
85
+ }, z.core.$strip>>;
86
+ }, z.core.$strip>, unknown>;
87
+ export declare const additionalRecommendationSchema: z.ZodPreprocess<z.ZodObject<{
233
88
  testId: z.ZodString;
234
- testType: z.ZodNativeEnum<typeof TestType>;
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"]>;
89
+ testType: z.ZodEnum<typeof TestType>;
90
+ category: z.ZodEnum<{
91
+ new_endpoint: "new_endpoint";
92
+ bug_caught: "bug_caught";
93
+ requirement_conflict: "requirement_conflict";
94
+ business_rule: "business_rule";
95
+ security_boundary: "security_boundary";
96
+ data_integrity: "data_integrity";
97
+ breaking_change: "breaking_change";
98
+ auth: "auth";
99
+ error_handling: "error_handling";
100
+ workflow: "workflow";
101
+ data_validation: "data_validation";
102
+ crud: "crud";
103
+ }>;
236
104
  primaryEndpoint: z.ZodOptional<z.ZodString>;
237
105
  scenarioName: z.ZodOptional<z.ZodString>;
238
106
  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>>;
107
+ method: z.ZodOptional<z.ZodPreprocess<z.ZodEnum<{
108
+ GET: "GET";
109
+ POST: "POST";
110
+ PUT: "PUT";
111
+ DELETE: "DELETE";
112
+ PATCH: "PATCH";
113
+ HEAD: "HEAD";
114
+ OPTIONS: "OPTIONS";
115
+ type: "type";
116
+ TRACE: "TRACE";
117
+ CONNECT: "CONNECT";
118
+ assert: "assert";
119
+ click: "click";
120
+ drag: "drag";
121
+ "drag-hold": "drag-hold";
122
+ hover: "hover";
123
+ inspect: "inspect";
124
+ navigate: "navigate";
125
+ press: "press";
126
+ release: "release";
127
+ tap: "tap";
128
+ wait: "wait";
129
+ OPERATION: "OPERATION";
130
+ }>, unknown>>;
240
131
  path: z.ZodOptional<z.ZodString>;
241
132
  description: z.ZodString;
242
133
  expectedStatusCode: z.ZodOptional<z.ZodNumber>;
243
134
  requestBody: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
244
- responseBody: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">]>>;
245
- }, "strip", z.ZodTypeAny, {
246
- description: string;
247
- path?: string | undefined;
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;
249
- requestBody?: Record<string, any> | undefined;
250
- responseBody?: any[] | Record<string, any> | undefined;
251
- expectedStatusCode?: number | undefined;
252
- }, {
253
- description: string;
254
- path?: string | undefined;
255
- method?: unknown;
256
- requestBody?: Record<string, any> | undefined;
257
- responseBody?: any[] | Record<string, any> | undefined;
258
- expectedStatusCode?: number | undefined;
259
- }>, "many">>>;
135
+ responseBody: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
136
+ }, z.core.$strip>>>>;
260
137
  description: z.ZodString;
261
- priority: z.ZodEffects<z.ZodEnum<["high", "medium", "low"]>, "high" | "medium" | "low", unknown>;
138
+ priority: z.ZodPreprocess<z.ZodEnum<{
139
+ high: "high";
140
+ medium: "medium";
141
+ low: "low";
142
+ }>, unknown>;
262
143
  openApiSpec: z.ZodOptional<z.ZodString>;
263
144
  backendTrace: z.ZodOptional<z.ZodString>;
264
145
  frontendTrace: z.ZodOptional<z.ZodString>;
@@ -267,209 +148,25 @@ export declare const additionalRecommendationSchema: z.ZodEffects<z.ZodEffects<z
267
148
  targetElements: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
268
149
  role: z.ZodString;
269
150
  accessibleName: z.ZodString;
270
- testId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
271
- stableId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
272
- contextText: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>, string[] | null, string[] | null | undefined>;
273
- mutability: z.ZodOptional<z.ZodEnum<["mutable", "immutable", "unknown"]>>;
274
- widgetType: z.ZodOptional<z.ZodEnum<["native", "custom", "unknown"]>>;
275
- }, "strip", z.ZodTypeAny, {
276
- role: string;
277
- accessibleName: string;
278
- testId: string | null;
279
- stableId: string | null;
280
- contextText: string[] | null;
281
- mutability?: "unknown" | "mutable" | "immutable" | undefined;
282
- widgetType?: "unknown" | "custom" | "native" | undefined;
283
- }, {
284
- role: string;
285
- accessibleName: string;
286
- testId?: string | null | undefined;
287
- stableId?: string | null | undefined;
288
- contextText?: string[] | null | undefined;
289
- mutability?: "unknown" | "mutable" | "immutable" | undefined;
290
- widgetType?: "unknown" | "custom" | "native" | undefined;
291
- }>, "many">>>;
151
+ testId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
152
+ stableId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
153
+ contextText: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>, z.ZodTransform<string[] | null, string[] | null | undefined>>;
154
+ mutability: z.ZodOptional<z.ZodEnum<{
155
+ unknown: "unknown";
156
+ mutable: "mutable";
157
+ immutable: "immutable";
158
+ }>>;
159
+ widgetType: z.ZodOptional<z.ZodEnum<{
160
+ unknown: "unknown";
161
+ custom: "custom";
162
+ native: "native";
163
+ }>>;
164
+ }, z.core.$strip>>>>;
292
165
  pageContext: z.ZodOptional<z.ZodObject<{
293
166
  url: z.ZodString;
294
167
  pageHash: z.ZodOptional<z.ZodString>;
295
- }, "strip", z.ZodTypeAny, {
296
- url: string;
297
- pageHash?: string | undefined;
298
- }, {
299
- url: string;
300
- pageHash?: string | undefined;
301
- }>>;
302
- }, "strip", z.ZodTypeAny, {
303
- description: string;
304
- priority: "high" | "medium" | "low";
305
- repository: string;
306
- testType: TestType;
307
- category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
308
- steps: {
309
- description: string;
310
- path?: string | undefined;
311
- 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;
312
- requestBody?: Record<string, any> | undefined;
313
- responseBody?: any[] | Record<string, any> | undefined;
314
- expectedStatusCode?: number | undefined;
315
- }[];
316
- testId: string;
317
- reasoning: string;
318
- scenarioName?: string | undefined;
319
- targetElements?: {
320
- role: string;
321
- accessibleName: string;
322
- testId: string | null;
323
- stableId: string | null;
324
- contextText: string[] | null;
325
- mutability?: "unknown" | "mutable" | "immutable" | undefined;
326
- widgetType?: "unknown" | "custom" | "native" | undefined;
327
- }[] | null | undefined;
328
- pageContext?: {
329
- url: string;
330
- pageHash?: string | undefined;
331
- } | undefined;
332
- frontendTrace?: string | undefined;
333
- primaryEndpoint?: string | undefined;
334
- openApiSpec?: string | undefined;
335
- backendTrace?: string | undefined;
336
- }, {
337
- description: string;
338
- repository: string;
339
- testType: TestType;
340
- category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
341
- testId: string;
342
- reasoning: string;
343
- priority?: unknown;
344
- scenarioName?: string | undefined;
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;
353
- targetElements?: {
354
- role: string;
355
- accessibleName: string;
356
- testId?: string | null | undefined;
357
- stableId?: string | null | undefined;
358
- contextText?: string[] | null | undefined;
359
- mutability?: "unknown" | "mutable" | "immutable" | undefined;
360
- widgetType?: "unknown" | "custom" | "native" | undefined;
361
- }[] | null | undefined;
362
- pageContext?: {
363
- url: string;
364
- pageHash?: string | undefined;
365
- } | undefined;
366
- frontendTrace?: string | undefined;
367
- primaryEndpoint?: string | undefined;
368
- openApiSpec?: string | undefined;
369
- backendTrace?: string | undefined;
370
- }>, {
371
- description: string;
372
- priority: "high" | "medium" | "low";
373
- repository: string;
374
- testType: TestType;
375
- category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
376
- steps: {
377
- description: string;
378
- path?: string | undefined;
379
- 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;
380
- requestBody?: Record<string, any> | undefined;
381
- responseBody?: any[] | Record<string, any> | undefined;
382
- expectedStatusCode?: number | undefined;
383
- }[];
384
- testId: string;
385
- reasoning: string;
386
- scenarioName?: string | undefined;
387
- targetElements?: {
388
- role: string;
389
- accessibleName: string;
390
- testId: string | null;
391
- stableId: string | null;
392
- contextText: string[] | null;
393
- mutability?: "unknown" | "mutable" | "immutable" | undefined;
394
- widgetType?: "unknown" | "custom" | "native" | undefined;
395
- }[] | null | undefined;
396
- pageContext?: {
397
- url: string;
398
- pageHash?: string | undefined;
399
- } | undefined;
400
- frontendTrace?: string | undefined;
401
- primaryEndpoint?: string | undefined;
402
- openApiSpec?: string | undefined;
403
- backendTrace?: string | undefined;
404
- }, {
405
- description: string;
406
- repository: string;
407
- testType: TestType;
408
- category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
409
- testId: string;
410
- reasoning: string;
411
- priority?: unknown;
412
- scenarioName?: string | undefined;
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;
421
- targetElements?: {
422
- role: string;
423
- accessibleName: string;
424
- testId?: string | null | undefined;
425
- stableId?: string | null | undefined;
426
- contextText?: string[] | null | undefined;
427
- mutability?: "unknown" | "mutable" | "immutable" | undefined;
428
- widgetType?: "unknown" | "custom" | "native" | undefined;
429
- }[] | null | undefined;
430
- pageContext?: {
431
- url: string;
432
- pageHash?: string | undefined;
433
- } | undefined;
434
- frontendTrace?: string | undefined;
435
- primaryEndpoint?: string | undefined;
436
- openApiSpec?: string | undefined;
437
- backendTrace?: string | undefined;
438
- }>, {
439
- description: string;
440
- priority: "high" | "medium" | "low";
441
- repository: string;
442
- testType: TestType;
443
- category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
444
- steps: {
445
- description: string;
446
- path?: string | undefined;
447
- 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;
448
- requestBody?: Record<string, any> | undefined;
449
- responseBody?: any[] | Record<string, any> | undefined;
450
- expectedStatusCode?: number | undefined;
451
- }[];
452
- testId: string;
453
- reasoning: string;
454
- scenarioName?: string | undefined;
455
- targetElements?: {
456
- role: string;
457
- accessibleName: string;
458
- testId: string | null;
459
- stableId: string | null;
460
- contextText: string[] | null;
461
- mutability?: "unknown" | "mutable" | "immutable" | undefined;
462
- widgetType?: "unknown" | "custom" | "native" | undefined;
463
- }[] | null | undefined;
464
- pageContext?: {
465
- url: string;
466
- pageHash?: string | undefined;
467
- } | undefined;
468
- frontendTrace?: string | undefined;
469
- primaryEndpoint?: string | undefined;
470
- openApiSpec?: string | undefined;
471
- backendTrace?: string | undefined;
472
- }, unknown>;
168
+ }, z.core.$strip>>;
169
+ }, z.core.$strip>, unknown>;
473
170
  /**
474
171
  * Remove every comment addressed to a Skyramp gate from the files this run delivers.
475
172
  *