@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,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ import { McpServer } from "@modelcontextprotocol/server";
3
3
  import { StateManager, UnifiedAnalysisState } from "../../utils/AnalysisStateManager.js";
4
4
  import { PlanResult } from "../../recommendation/registerPlan.js";
5
5
  import { ObjectionAnswer, PlanChange, PlanDefect, PlanInput, PlanMaintenance, VerifyContext } from "../../recommendation/types.js";
@@ -8,793 +8,167 @@ import { ObjectionAnswer, PlanChange, PlanDefect, PlanInput, PlanMaintenance, Ve
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, "many">>;
12
- defects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
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<["fail", "pass"]>;
16
+ outcome: z.ZodEnum<{
17
+ pass: "pass";
18
+ fail: "fail";
19
+ }>;
17
20
  why: z.ZodString;
18
- }, "strict", z.ZodTypeAny, {
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
- }, "strict", z.ZodTypeAny, {
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
- }, "strict", z.ZodTypeAny, {
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
- }, "strict", z.ZodTypeAny, {
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
- }, "strict", z.ZodTypeAny, {
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.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
69
- stableId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
70
- contextText: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>, string[] | null, string[] | null | undefined>;
71
- mutability: z.ZodOptional<z.ZodEnum<["mutable", "immutable", "unknown"]>>;
72
- widgetType: z.ZodOptional<z.ZodEnum<["native", "custom", "unknown"]>>;
73
- }, "strip", z.ZodTypeAny, {
74
- role: string;
75
- accessibleName: string;
76
- testId: string | null;
77
- stableId: string | null;
78
- contextText: string[] | null;
79
- mutability?: "unknown" | "mutable" | "immutable" | undefined;
80
- widgetType?: "unknown" | "custom" | "native" | undefined;
81
- }, {
82
- role: string;
83
- accessibleName: string;
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
- accessibleName: string;
94
- testId: string | null;
95
- stableId: string | null;
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
- accessibleName: string;
134
- testId: string | null;
135
- stableId: string | null;
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.ZodEffects<z.ZodEffects<z.ZodObject<{
196
- scenarioName: z.ZodEffects<z.ZodString, string, string>;
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<["new_endpoint", "bug_caught", "requirement_conflict", "business_rule", "security_boundary", "data_integrity", "breaking_change", "auth", "error_handling", "workflow", "data_validation", "crud"]>;
200
- testType: z.ZodEnum<[import("../../types/TestTypes.js").TestType.CONTRACT, import("../../types/TestTypes.js").TestType.INTEGRATION, import("../../types/TestTypes.js").TestType.E2E, import("../../types/TestTypes.js").TestType.UI]>;
201
- steps: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
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.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>;
204
- path: z.ZodEffects<z.ZodString, string, string>;
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, "many">>;
118
+ omits: z.ZodOptional<z.ZodArray<z.ZodString>>;
209
119
  expectedStatusCode: z.ZodOptional<z.ZodNumber>;
210
- }, "strip", z.ZodTypeAny, {
211
- path: string;
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, "many">>;
268
- defects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
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<["fail", "pass"]>;
128
+ outcome: z.ZodEnum<{
129
+ pass: "pass";
130
+ fail: "fail";
131
+ }>;
273
132
  why: z.ZodString;
274
- }, "strict", z.ZodTypeAny, {
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
- }, "strict", z.ZodTypeAny, {
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
- }, "strict", z.ZodTypeAny, {
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
- }, "strict", z.ZodTypeAny, {
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
- }, "strict", z.ZodTypeAny, {
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.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
325
- stableId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
326
- contextText: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>, string[] | null, string[] | null | undefined>;
327
- mutability: z.ZodOptional<z.ZodEnum<["mutable", "immutable", "unknown"]>>;
328
- widgetType: z.ZodOptional<z.ZodEnum<["native", "custom", "unknown"]>>;
329
- }, "strip", z.ZodTypeAny, {
330
- role: string;
331
- accessibleName: string;
332
- testId: string | null;
333
- stableId: string | null;
334
- contextText: string[] | null;
335
- mutability?: "unknown" | "mutable" | "immutable" | undefined;
336
- widgetType?: "unknown" | "custom" | "native" | undefined;
337
- }, {
338
- role: string;
339
- accessibleName: string;
340
- testId?: string | null | undefined;
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
- accessibleName: string;
350
- testId: string | null;
351
- stableId: string | null;
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
- 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
- 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
- accessibleName: string;
466
- testId: string | null;
467
- stableId: string | null;
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
- accessibleName: string;
559
- testId: string | null;
560
- stableId: string | null;
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
- accessibleName: string;
669
- testId: string | null;
670
- stableId: string | null;
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
- accessibleName: string;
779
- testId: string | null;
780
- stableId: string | null;
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;