@qawolf/api-contracts 0.81.0 → 0.83.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/v1/{run/getAttemptArtifacts.d.ts → attempt/get.d.ts} +4 -4
  2. package/dist/v1/attempt/get.d.ts.map +1 -0
  3. package/dist/v1/{run/getAttemptArtifacts.js → attempt/get.js} +5 -5
  4. package/dist/v1/attempt/get.js.map +1 -0
  5. package/dist/v1/environment/discard.d.ts +54 -0
  6. package/dist/v1/environment/discard.d.ts.map +1 -0
  7. package/dist/v1/environment/discard.js +28 -0
  8. package/dist/v1/environment/discard.js.map +1 -0
  9. package/dist/v1/environment/promote.d.ts +51 -0
  10. package/dist/v1/environment/promote.d.ts.map +1 -0
  11. package/dist/v1/environment/promote.js +28 -0
  12. package/dist/v1/environment/promote.js.map +1 -0
  13. package/dist/v1/ids.d.ts +3 -1
  14. package/dist/v1/ids.d.ts.map +1 -1
  15. package/dist/v1/ids.js +4 -0
  16. package/dist/v1/ids.js.map +1 -1
  17. package/dist/v1/index.d.ts +790 -410
  18. package/dist/v1/index.d.ts.map +1 -1
  19. package/dist/v1/index.js +10 -2
  20. package/dist/v1/index.js.map +1 -1
  21. package/dist/v1/investigation/finding.d.ts +1 -0
  22. package/dist/v1/investigation/finding.d.ts.map +1 -1
  23. package/dist/v1/investigation/finding.js +5 -1
  24. package/dist/v1/investigation/finding.js.map +1 -1
  25. package/dist/v1/investigation/get.d.ts +1 -0
  26. package/dist/v1/investigation/get.d.ts.map +1 -1
  27. package/dist/v1/investigation/index.d.ts +1 -0
  28. package/dist/v1/investigation/index.d.ts.map +1 -1
  29. package/dist/v1/promotion/find.d.ts +64 -0
  30. package/dist/v1/promotion/find.d.ts.map +1 -0
  31. package/dist/v1/promotion/find.js +41 -0
  32. package/dist/v1/promotion/find.js.map +1 -0
  33. package/dist/v1/promotion/get.d.ts +48 -0
  34. package/dist/v1/promotion/get.d.ts.map +1 -0
  35. package/dist/v1/promotion/get.js +24 -0
  36. package/dist/v1/promotion/get.js.map +1 -0
  37. package/dist/v1/promotion/index.d.ts +109 -0
  38. package/dist/v1/promotion/index.d.ts.map +1 -0
  39. package/dist/v1/promotion/index.js +10 -0
  40. package/dist/v1/promotion/index.js.map +1 -0
  41. package/dist/v1/promotion/resource.d.ts +39 -0
  42. package/dist/v1/promotion/resource.d.ts.map +1 -0
  43. package/dist/v1/promotion/resource.js +45 -0
  44. package/dist/v1/promotion/resource.js.map +1 -0
  45. package/dist/v1/runner/catalog.d.ts +7 -7
  46. package/dist/v1/runner/inspect.js +1 -1
  47. package/dist/v1/runner/inspect.js.map +1 -1
  48. package/dist/v1/runner/inspectMobile.d.ts +1 -1
  49. package/dist/v1/runner/inspectMobile.d.ts.map +1 -1
  50. package/dist/v1/runner/inspectMobile.js +11 -5
  51. package/dist/v1/runner/inspectMobile.js.map +1 -1
  52. package/dist/v1/runner/performAction.d.ts +1 -1
  53. package/dist/v1/runner/performAction.d.ts.map +1 -1
  54. package/dist/v1/runner/performAction.js +6 -5
  55. package/dist/v1/runner/performAction.js.map +1 -1
  56. package/dist/v1/runner/performActions.d.ts +1 -1
  57. package/dist/v1/runner/performActions.js +1 -1
  58. package/dist/v1/runner/performActions.js.map +1 -1
  59. package/dist/v1/runner/recording.d.ts +10 -10
  60. package/dist/v1/runner/runnerAction.d.ts +1 -1
  61. package/dist/v1/runner/runnerAction.js +1 -1
  62. package/dist/v1/runner/screen.d.ts +2 -2
  63. package/dist/v1/runner/screen.d.ts.map +1 -1
  64. package/dist/v1/runner/screen.js +2 -2
  65. package/dist/v1/runner/screen.js.map +1 -1
  66. package/dist/v1/runner/takeScreenshot.d.ts +1 -1
  67. package/dist/v1/runner/takeScreenshot.js +1 -1
  68. package/dist/v1/runner/takeScreenshot.js.map +1 -1
  69. package/package.json +1 -1
  70. package/dist/v1/run/getAttemptArtifacts.d.ts.map +0 -1
  71. package/dist/v1/run/getAttemptArtifacts.js.map +0 -1
@@ -11,7 +11,7 @@ export type PublicApiOutput<Api extends AnyPublicApiContract> = z.infer<Api["out
11
11
  * the same factory with its own strict id schemas, so the contract shape can
12
12
  * never drift between the two while validation strictness stays server-owned.
13
13
  */
14
- export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, FlowId extends PublicIdSchema, RunId extends PublicIdSchema, IssueId extends PublicIdSchema = PublicIdSchema, WorkspaceId extends PublicIdSchema = PublicIdSchema, AiTaskId extends PublicIdSchema = PublicIdSchema, ChatSessionId extends PublicIdSchema = PublicIdSchema, TriggerId extends PublicIdSchema = PublicIdSchema, DeploymentId extends PublicIdSchema = PublicIdSchema, LegacyTriggerId extends PublicIdSchema = PublicIdSchema, RunAttemptId extends PublicIdSchema = PublicIdSchema>(ids: Omit<PublicIdSchemasOf<EnvironmentId, FlowId, RunId, IssueId, WorkspaceId, AiTaskId, ChatSessionId, TriggerId, DeploymentId, LegacyTriggerId, RunAttemptId>, "runAttempt"> & {
14
+ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, FlowId extends PublicIdSchema, RunId extends PublicIdSchema, IssueId extends PublicIdSchema = PublicIdSchema, WorkspaceId extends PublicIdSchema = PublicIdSchema, AiTaskId extends PublicIdSchema = PublicIdSchema, ChatSessionId extends PublicIdSchema = PublicIdSchema, TriggerId extends PublicIdSchema = PublicIdSchema, DeploymentId extends PublicIdSchema = PublicIdSchema, LegacyTriggerId extends PublicIdSchema = PublicIdSchema, RunAttemptId extends PublicIdSchema = PublicIdSchema, PromotionId extends PublicIdSchema = PublicIdSchema>(ids: Omit<PublicIdSchemasOf<EnvironmentId, FlowId, RunId, IssueId, WorkspaceId, AiTaskId, ChatSessionId, TriggerId, DeploymentId, LegacyTriggerId, RunAttemptId, PromotionId>, "runAttempt"> & {
15
15
  runAttempt?: RunAttemptId;
16
16
  }) => {
17
17
  agent: {
@@ -94,6 +94,202 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
94
94
  }, z.core.$strip>;
95
95
  };
96
96
  };
97
+ attempt: {
98
+ get: {
99
+ readonly annotationJustifications: {
100
+ readonly destructiveHint: "Does not retry, cancel or alter the run attempt.";
101
+ readonly openWorldHint: "Reads recorded QA Wolf artifacts without changing the application under test.";
102
+ readonly readOnlyHint: "Retrieves a finished attempt's metadata and signed artifact URLs.";
103
+ };
104
+ readonly annotations: {
105
+ readonly destructiveHint: false;
106
+ readonly openWorldHint: false;
107
+ readonly readOnlyHint: true;
108
+ };
109
+ readonly description: "Get a finished run attempt: its run and flow status, its place among that flow's attempts in the run, and signed links to its logs, trace, and video when they were captured.";
110
+ readonly input: z.ZodObject<{
111
+ attemptId: PublicIdSchema;
112
+ }, z.core.$strip>;
113
+ readonly kind: "read";
114
+ readonly name: "attempt.get";
115
+ readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
116
+ flowId: FlowId;
117
+ flowStatus: z.ZodEnum<{
118
+ failed: "failed";
119
+ queued: "queued";
120
+ running: "running";
121
+ passed: "passed";
122
+ canceled: "canceled";
123
+ }>;
124
+ retryContext: z.ZodObject<{
125
+ currentOrdinal: z.ZodNumber;
126
+ next: z.ZodOptional<z.ZodObject<{
127
+ attemptId: PublicIdSchema;
128
+ status: z.ZodEnum<{
129
+ failed: "failed";
130
+ passed: "passed";
131
+ canceled: "canceled";
132
+ skipped: "skipped";
133
+ aborted: "aborted";
134
+ }>;
135
+ }, z.core.$strip>>;
136
+ previous: z.ZodOptional<z.ZodObject<{
137
+ attemptId: PublicIdSchema;
138
+ status: z.ZodEnum<{
139
+ failed: "failed";
140
+ passed: "passed";
141
+ canceled: "canceled";
142
+ skipped: "skipped";
143
+ aborted: "aborted";
144
+ }>;
145
+ }, z.core.$strip>>;
146
+ total: z.ZodNumber;
147
+ }, z.core.$strip>;
148
+ runId: RunId;
149
+ runStatus: z.ZodEnum<{
150
+ failed: "failed";
151
+ queued: "queued";
152
+ running: "running";
153
+ passed: "passed";
154
+ canceled: "canceled";
155
+ superseded: "superseded";
156
+ }>;
157
+ artifacts: z.ZodObject<{
158
+ logsUrl: z.ZodOptional<z.ZodURL>;
159
+ traceUrl: z.ZodOptional<z.ZodURL>;
160
+ videoUrl: z.ZodOptional<z.ZodURL>;
161
+ }, z.core.$strip>;
162
+ artifactStatus: z.ZodLiteral<"signed">;
163
+ attempt: z.ZodObject<{
164
+ attemptId: PublicIdSchema;
165
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
166
+ createdAt: z.ZodISODateTime;
167
+ error: z.ZodOptional<z.ZodString>;
168
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
169
+ kind: z.ZodLiteral<"automated">;
170
+ status: z.ZodEnum<{
171
+ failed: "failed";
172
+ passed: "passed";
173
+ canceled: "canceled";
174
+ skipped: "skipped";
175
+ aborted: "aborted";
176
+ }>;
177
+ }, z.core.$strip>;
178
+ }, z.core.$strip>, z.ZodObject<{
179
+ flowId: FlowId;
180
+ flowStatus: z.ZodEnum<{
181
+ failed: "failed";
182
+ queued: "queued";
183
+ running: "running";
184
+ passed: "passed";
185
+ canceled: "canceled";
186
+ }>;
187
+ retryContext: z.ZodObject<{
188
+ currentOrdinal: z.ZodNumber;
189
+ next: z.ZodOptional<z.ZodObject<{
190
+ attemptId: PublicIdSchema;
191
+ status: z.ZodEnum<{
192
+ failed: "failed";
193
+ passed: "passed";
194
+ canceled: "canceled";
195
+ skipped: "skipped";
196
+ aborted: "aborted";
197
+ }>;
198
+ }, z.core.$strip>>;
199
+ previous: z.ZodOptional<z.ZodObject<{
200
+ attemptId: PublicIdSchema;
201
+ status: z.ZodEnum<{
202
+ failed: "failed";
203
+ passed: "passed";
204
+ canceled: "canceled";
205
+ skipped: "skipped";
206
+ aborted: "aborted";
207
+ }>;
208
+ }, z.core.$strip>>;
209
+ total: z.ZodNumber;
210
+ }, z.core.$strip>;
211
+ runId: RunId;
212
+ runStatus: z.ZodEnum<{
213
+ failed: "failed";
214
+ queued: "queued";
215
+ running: "running";
216
+ passed: "passed";
217
+ canceled: "canceled";
218
+ superseded: "superseded";
219
+ }>;
220
+ artifacts: z.ZodObject<{}, z.core.$strict>;
221
+ artifactStatus: z.ZodLiteral<"signing-failed">;
222
+ attempt: z.ZodObject<{
223
+ attemptId: PublicIdSchema;
224
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
225
+ createdAt: z.ZodISODateTime;
226
+ error: z.ZodOptional<z.ZodString>;
227
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
228
+ kind: z.ZodLiteral<"automated">;
229
+ status: z.ZodEnum<{
230
+ failed: "failed";
231
+ passed: "passed";
232
+ canceled: "canceled";
233
+ skipped: "skipped";
234
+ aborted: "aborted";
235
+ }>;
236
+ }, z.core.$strip>;
237
+ }, z.core.$strip>, z.ZodObject<{
238
+ flowId: FlowId;
239
+ flowStatus: z.ZodEnum<{
240
+ failed: "failed";
241
+ queued: "queued";
242
+ running: "running";
243
+ passed: "passed";
244
+ canceled: "canceled";
245
+ }>;
246
+ retryContext: z.ZodObject<{
247
+ currentOrdinal: z.ZodNumber;
248
+ next: z.ZodOptional<z.ZodObject<{
249
+ attemptId: PublicIdSchema;
250
+ status: z.ZodEnum<{
251
+ failed: "failed";
252
+ passed: "passed";
253
+ canceled: "canceled";
254
+ skipped: "skipped";
255
+ aborted: "aborted";
256
+ }>;
257
+ }, z.core.$strip>>;
258
+ previous: z.ZodOptional<z.ZodObject<{
259
+ attemptId: PublicIdSchema;
260
+ status: z.ZodEnum<{
261
+ failed: "failed";
262
+ passed: "passed";
263
+ canceled: "canceled";
264
+ skipped: "skipped";
265
+ aborted: "aborted";
266
+ }>;
267
+ }, z.core.$strip>>;
268
+ total: z.ZodNumber;
269
+ }, z.core.$strip>;
270
+ runId: RunId;
271
+ runStatus: z.ZodEnum<{
272
+ failed: "failed";
273
+ queued: "queued";
274
+ running: "running";
275
+ passed: "passed";
276
+ canceled: "canceled";
277
+ superseded: "superseded";
278
+ }>;
279
+ artifacts: z.ZodObject<{}, z.core.$strict>;
280
+ artifactStatus: z.ZodLiteral<"not-captured">;
281
+ attempt: z.ZodObject<{
282
+ attemptId: PublicIdSchema;
283
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
284
+ createdAt: z.ZodISODateTime;
285
+ error: z.ZodOptional<z.ZodString>;
286
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
287
+ kind: z.ZodLiteral<"manual">;
288
+ status: z.ZodLiteral<"passed">;
289
+ }, z.core.$strip>;
290
+ }, z.core.$strip>], "artifactStatus">;
291
+ };
292
+ };
97
293
  codeHostIntegration: {
98
294
  find: {
99
295
  readonly annotationJustifications: {
@@ -690,6 +886,53 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
690
886
  name: z.ZodString;
691
887
  }, z.core.$strip>;
692
888
  };
889
+ discard: {
890
+ readonly annotationJustifications: {
891
+ readonly destructiveHint: "Terminates the environment for good: its runs are canceled and its flow changes are never promoted.";
892
+ readonly openWorldHint: "Changes QA Wolf environments only, not the customer's own repository or deployments.";
893
+ readonly readOnlyHint: "Terminates an environment and returns it terminated.";
894
+ };
895
+ readonly annotations: {
896
+ readonly destructiveHint: true;
897
+ readonly openWorldHint: false;
898
+ readonly readOnlyHint: false;
899
+ };
900
+ readonly description: "Declare a preview environment's work discarded, typically when its pull request closes without merging: the environment is terminated and its flow changes are not promoted into its base. Returns the environment, now terminated. A terminated environment cannot be discarded again. Use environment.promote instead when the work is accepted.";
901
+ readonly input: z.ZodObject<{
902
+ environmentId: PublicIdSchema;
903
+ workspaceId: z.ZodOptional<WorkspaceId>;
904
+ }, z.core.$strip>;
905
+ readonly kind: "write";
906
+ readonly name: "environment.discard";
907
+ readonly output: z.ZodObject<{
908
+ alias: z.ZodOptional<z.ZodString>;
909
+ flowCodeBranch: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
910
+ lastSyncedCommitHash: z.ZodString;
911
+ name: z.ZodString;
912
+ syncStatus: z.ZodLiteral<"reconciled">;
913
+ }, z.core.$strip>, z.ZodObject<{
914
+ name: z.ZodString;
915
+ syncStatus: z.ZodLiteral<"not-reconciled">;
916
+ }, z.core.$strip>], "syncStatus">>;
917
+ id: EnvironmentId;
918
+ isDefault: z.ZodBoolean;
919
+ kind: z.ZodEnum<{
920
+ static: "static";
921
+ preview: "preview";
922
+ }>;
923
+ name: z.ZodString;
924
+ runConcurrencyLimit: z.ZodString;
925
+ status: z.ZodEnum<{
926
+ running: "running";
927
+ blocked: "blocked";
928
+ "needs-investigation": "needs-investigation";
929
+ ready: "ready";
930
+ }>;
931
+ terminatedAt: z.ZodOptional<z.ZodISODateTime>;
932
+ variablesUrl: z.ZodOptional<z.ZodURL>;
933
+ url: z.ZodURL;
934
+ }, z.core.$strip>;
935
+ };
693
936
  find: {
694
937
  readonly annotationJustifications: {
695
938
  readonly destructiveHint: "Does not edit environments, variables or branches.";
@@ -843,6 +1086,48 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
843
1086
  variableNames: z.ZodArray<z.ZodString>;
844
1087
  }, z.core.$strip>;
845
1088
  };
1089
+ promote: {
1090
+ readonly annotationJustifications: {
1091
+ readonly destructiveHint: "Merges the environment's flow changes into its base and terminates the environment once they land.";
1092
+ readonly openWorldHint: "Changes QA Wolf flow code branches only, not the customer's own repository or deployments.";
1093
+ readonly readOnlyHint: "Records a promotion request that a background executor carries out.";
1094
+ };
1095
+ readonly annotations: {
1096
+ readonly destructiveHint: true;
1097
+ readonly openWorldHint: false;
1098
+ readonly readOnlyHint: false;
1099
+ };
1100
+ readonly description: "Declare a preview environment's work accepted, typically when its pull request merges: its flow changes are promoted into its base environment and the environment is terminated once they land. Returns the promotion in pending; poll promotion.get to learn how it settled. Calling again while a promotion is open returns that promotion. A conflict settles the promotion conflicted and cancels the environment's in-progress runs; promotion.get names the conflicting paths. Use environment.discard instead when the work is abandoned.";
1101
+ readonly input: z.ZodObject<{
1102
+ environmentId: PublicIdSchema;
1103
+ workspaceId: z.ZodOptional<WorkspaceId>;
1104
+ }, z.core.$strip>;
1105
+ readonly kind: "write";
1106
+ readonly name: "environment.promote";
1107
+ readonly output: z.ZodObject<{
1108
+ aiTaskId: z.ZodOptional<AiTaskId>;
1109
+ baseEnvironmentId: EnvironmentId;
1110
+ conflict: z.ZodOptional<z.ZodObject<{
1111
+ paths: z.ZodArray<z.ZodString>;
1112
+ sourceCommitHash: z.ZodString;
1113
+ targetCommitHash: z.ZodString;
1114
+ }, z.core.$strip>>;
1115
+ createdAt: z.ZodISODateTime;
1116
+ headEnvironmentId: EnvironmentId;
1117
+ id: PromotionId;
1118
+ promotedCommitHash: z.ZodOptional<z.ZodString>;
1119
+ settledAt: z.ZodOptional<z.ZodISODateTime>;
1120
+ status: z.ZodEnum<{
1121
+ pending: "pending";
1122
+ conflicted: "conflicted";
1123
+ resolving: "resolving";
1124
+ promoted: "promoted";
1125
+ "no-changes": "no-changes";
1126
+ abandoned: "abandoned";
1127
+ }>;
1128
+ url: z.ZodURL;
1129
+ }, z.core.$strip>;
1130
+ };
846
1131
  setVariable: {
847
1132
  readonly annotationJustifications: {
848
1133
  readonly destructiveHint: "Can overwrite an existing variable value, while an unchanged value is skipped.";
@@ -1176,6 +1461,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1176
1461
  answer: z.ZodOptional<z.ZodString>;
1177
1462
  at: z.ZodISODateTime;
1178
1463
  reason: z.ZodOptional<z.ZodString>;
1464
+ text: z.ZodOptional<z.ZodString>;
1179
1465
  type: z.ZodString;
1180
1466
  }, z.core.$strip>>;
1181
1467
  state: z.ZodString;
@@ -1771,6 +2057,104 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1771
2057
  }, z.core.$strip>;
1772
2058
  };
1773
2059
  };
2060
+ promotion: {
2061
+ find: {
2062
+ readonly annotationJustifications: {
2063
+ readonly destructiveHint: "Does not change promotions, environments or flow code branches.";
2064
+ readonly openWorldHint: "Reads private QA Wolf promotion records without changing external systems.";
2065
+ readonly readOnlyHint: "Lists promotions in the authorized workspace without changing them.";
2066
+ };
2067
+ readonly annotations: {
2068
+ readonly destructiveHint: false;
2069
+ readonly openWorldHint: false;
2070
+ readonly readOnlyHint: true;
2071
+ };
2072
+ readonly description: "List environment promotions, newest first. A promotion moves the flow changes made in a head environment into its base environment. Filter by status conflicted to find the promotions whose conflicts still need a resolution.";
2073
+ readonly input: z.ZodObject<{
2074
+ cursor: z.ZodOptional<z.ZodString>;
2075
+ limit: z.ZodDefault<z.ZodNumber>;
2076
+ environmentId: z.ZodOptional<PublicIdSchema>;
2077
+ status: z.ZodOptional<z.ZodEnum<{
2078
+ pending: "pending";
2079
+ conflicted: "conflicted";
2080
+ resolving: "resolving";
2081
+ promoted: "promoted";
2082
+ "no-changes": "no-changes";
2083
+ abandoned: "abandoned";
2084
+ }>>;
2085
+ workspaceId: z.ZodOptional<WorkspaceId>;
2086
+ }, z.core.$strip>;
2087
+ readonly kind: "read";
2088
+ readonly name: "promotion.find";
2089
+ readonly output: z.ZodObject<{
2090
+ nextCursor: z.ZodOptional<z.ZodString>;
2091
+ promotions: z.ZodArray<z.ZodObject<{
2092
+ aiTaskId: z.ZodOptional<AiTaskId>;
2093
+ baseEnvironmentId: EnvironmentId;
2094
+ conflict: z.ZodOptional<z.ZodObject<{
2095
+ paths: z.ZodArray<z.ZodString>;
2096
+ sourceCommitHash: z.ZodString;
2097
+ targetCommitHash: z.ZodString;
2098
+ }, z.core.$strip>>;
2099
+ createdAt: z.ZodISODateTime;
2100
+ headEnvironmentId: EnvironmentId;
2101
+ id: PromotionId;
2102
+ promotedCommitHash: z.ZodOptional<z.ZodString>;
2103
+ settledAt: z.ZodOptional<z.ZodISODateTime>;
2104
+ status: z.ZodEnum<{
2105
+ pending: "pending";
2106
+ conflicted: "conflicted";
2107
+ resolving: "resolving";
2108
+ promoted: "promoted";
2109
+ "no-changes": "no-changes";
2110
+ abandoned: "abandoned";
2111
+ }>;
2112
+ url: z.ZodURL;
2113
+ }, z.core.$strip>>;
2114
+ }, z.core.$strip>;
2115
+ };
2116
+ get: {
2117
+ readonly annotationJustifications: {
2118
+ readonly destructiveHint: "Does not change the promotion, its environments or flow code branches.";
2119
+ readonly openWorldHint: "Reads a private QA Wolf promotion record without changing external systems.";
2120
+ readonly readOnlyHint: "Retrieves one authorized promotion's status and conflict without changing it.";
2121
+ };
2122
+ readonly annotations: {
2123
+ readonly destructiveHint: false;
2124
+ readonly openWorldHint: false;
2125
+ readonly readOnlyHint: true;
2126
+ };
2127
+ readonly description: "Read one environment promotion: its status, the conflicting paths and commit hashes while it is conflicted or resolving, the commit it landed when promoted, and the AI task resolving it. Poll it after environment.promote to learn how the promotion settled. It does not serve file contents; a resolver reads both branches from the flow code repository.";
2128
+ readonly input: z.ZodObject<{
2129
+ promotionId: PromotionId;
2130
+ }, z.core.$strip>;
2131
+ readonly kind: "read";
2132
+ readonly name: "promotion.get";
2133
+ readonly output: z.ZodObject<{
2134
+ aiTaskId: z.ZodOptional<AiTaskId>;
2135
+ baseEnvironmentId: EnvironmentId;
2136
+ conflict: z.ZodOptional<z.ZodObject<{
2137
+ paths: z.ZodArray<z.ZodString>;
2138
+ sourceCommitHash: z.ZodString;
2139
+ targetCommitHash: z.ZodString;
2140
+ }, z.core.$strip>>;
2141
+ createdAt: z.ZodISODateTime;
2142
+ headEnvironmentId: EnvironmentId;
2143
+ id: PromotionId;
2144
+ promotedCommitHash: z.ZodOptional<z.ZodString>;
2145
+ settledAt: z.ZodOptional<z.ZodISODateTime>;
2146
+ status: z.ZodEnum<{
2147
+ pending: "pending";
2148
+ conflicted: "conflicted";
2149
+ resolving: "resolving";
2150
+ promoted: "promoted";
2151
+ "no-changes": "no-changes";
2152
+ abandoned: "abandoned";
2153
+ }>;
2154
+ url: z.ZodURL;
2155
+ }, z.core.$strip>;
2156
+ };
2157
+ };
1774
2158
  run: {
1775
2159
  acceptScreenshotBaseline: {
1776
2160
  readonly annotationJustifications: {
@@ -2106,200 +2490,6 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2106
2490
  url: z.ZodURL;
2107
2491
  }, z.core.$strip>;
2108
2492
  };
2109
- getAttemptArtifacts: {
2110
- readonly annotationJustifications: {
2111
- readonly destructiveHint: "Does not retry, cancel or alter the run attempt.";
2112
- readonly openWorldHint: "Reads recorded QA Wolf artifacts without changing the application under test.";
2113
- readonly readOnlyHint: "Retrieves a finished attempt's metadata and signed artifact URLs.";
2114
- };
2115
- readonly annotations: {
2116
- readonly destructiveHint: false;
2117
- readonly openWorldHint: false;
2118
- readonly readOnlyHint: true;
2119
- };
2120
- readonly description: "Get metadata and signed artifact URLs for one finished run attempt.";
2121
- readonly input: z.ZodObject<{
2122
- attemptId: PublicIdSchema;
2123
- }, z.core.$strip>;
2124
- readonly kind: "read";
2125
- readonly name: "run.getAttemptArtifacts";
2126
- readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
2127
- flowId: FlowId;
2128
- flowStatus: z.ZodEnum<{
2129
- failed: "failed";
2130
- queued: "queued";
2131
- running: "running";
2132
- passed: "passed";
2133
- canceled: "canceled";
2134
- }>;
2135
- retryContext: z.ZodObject<{
2136
- currentOrdinal: z.ZodNumber;
2137
- next: z.ZodOptional<z.ZodObject<{
2138
- attemptId: PublicIdSchema;
2139
- status: z.ZodEnum<{
2140
- failed: "failed";
2141
- passed: "passed";
2142
- canceled: "canceled";
2143
- skipped: "skipped";
2144
- aborted: "aborted";
2145
- }>;
2146
- }, z.core.$strip>>;
2147
- previous: z.ZodOptional<z.ZodObject<{
2148
- attemptId: PublicIdSchema;
2149
- status: z.ZodEnum<{
2150
- failed: "failed";
2151
- passed: "passed";
2152
- canceled: "canceled";
2153
- skipped: "skipped";
2154
- aborted: "aborted";
2155
- }>;
2156
- }, z.core.$strip>>;
2157
- total: z.ZodNumber;
2158
- }, z.core.$strip>;
2159
- runId: RunId;
2160
- runStatus: z.ZodEnum<{
2161
- failed: "failed";
2162
- queued: "queued";
2163
- running: "running";
2164
- passed: "passed";
2165
- canceled: "canceled";
2166
- superseded: "superseded";
2167
- }>;
2168
- artifacts: z.ZodObject<{
2169
- logsUrl: z.ZodOptional<z.ZodURL>;
2170
- traceUrl: z.ZodOptional<z.ZodURL>;
2171
- videoUrl: z.ZodOptional<z.ZodURL>;
2172
- }, z.core.$strip>;
2173
- artifactStatus: z.ZodLiteral<"signed">;
2174
- attempt: z.ZodObject<{
2175
- attemptId: PublicIdSchema;
2176
- completedAt: z.ZodOptional<z.ZodISODateTime>;
2177
- createdAt: z.ZodISODateTime;
2178
- error: z.ZodOptional<z.ZodString>;
2179
- startedAt: z.ZodOptional<z.ZodISODateTime>;
2180
- kind: z.ZodLiteral<"automated">;
2181
- status: z.ZodEnum<{
2182
- failed: "failed";
2183
- passed: "passed";
2184
- canceled: "canceled";
2185
- skipped: "skipped";
2186
- aborted: "aborted";
2187
- }>;
2188
- }, z.core.$strip>;
2189
- }, z.core.$strip>, z.ZodObject<{
2190
- flowId: FlowId;
2191
- flowStatus: z.ZodEnum<{
2192
- failed: "failed";
2193
- queued: "queued";
2194
- running: "running";
2195
- passed: "passed";
2196
- canceled: "canceled";
2197
- }>;
2198
- retryContext: z.ZodObject<{
2199
- currentOrdinal: z.ZodNumber;
2200
- next: z.ZodOptional<z.ZodObject<{
2201
- attemptId: PublicIdSchema;
2202
- status: z.ZodEnum<{
2203
- failed: "failed";
2204
- passed: "passed";
2205
- canceled: "canceled";
2206
- skipped: "skipped";
2207
- aborted: "aborted";
2208
- }>;
2209
- }, z.core.$strip>>;
2210
- previous: z.ZodOptional<z.ZodObject<{
2211
- attemptId: PublicIdSchema;
2212
- status: z.ZodEnum<{
2213
- failed: "failed";
2214
- passed: "passed";
2215
- canceled: "canceled";
2216
- skipped: "skipped";
2217
- aborted: "aborted";
2218
- }>;
2219
- }, z.core.$strip>>;
2220
- total: z.ZodNumber;
2221
- }, z.core.$strip>;
2222
- runId: RunId;
2223
- runStatus: z.ZodEnum<{
2224
- failed: "failed";
2225
- queued: "queued";
2226
- running: "running";
2227
- passed: "passed";
2228
- canceled: "canceled";
2229
- superseded: "superseded";
2230
- }>;
2231
- artifacts: z.ZodObject<{}, z.core.$strict>;
2232
- artifactStatus: z.ZodLiteral<"signing-failed">;
2233
- attempt: z.ZodObject<{
2234
- attemptId: PublicIdSchema;
2235
- completedAt: z.ZodOptional<z.ZodISODateTime>;
2236
- createdAt: z.ZodISODateTime;
2237
- error: z.ZodOptional<z.ZodString>;
2238
- startedAt: z.ZodOptional<z.ZodISODateTime>;
2239
- kind: z.ZodLiteral<"automated">;
2240
- status: z.ZodEnum<{
2241
- failed: "failed";
2242
- passed: "passed";
2243
- canceled: "canceled";
2244
- skipped: "skipped";
2245
- aborted: "aborted";
2246
- }>;
2247
- }, z.core.$strip>;
2248
- }, z.core.$strip>, z.ZodObject<{
2249
- flowId: FlowId;
2250
- flowStatus: z.ZodEnum<{
2251
- failed: "failed";
2252
- queued: "queued";
2253
- running: "running";
2254
- passed: "passed";
2255
- canceled: "canceled";
2256
- }>;
2257
- retryContext: z.ZodObject<{
2258
- currentOrdinal: z.ZodNumber;
2259
- next: z.ZodOptional<z.ZodObject<{
2260
- attemptId: PublicIdSchema;
2261
- status: z.ZodEnum<{
2262
- failed: "failed";
2263
- passed: "passed";
2264
- canceled: "canceled";
2265
- skipped: "skipped";
2266
- aborted: "aborted";
2267
- }>;
2268
- }, z.core.$strip>>;
2269
- previous: z.ZodOptional<z.ZodObject<{
2270
- attemptId: PublicIdSchema;
2271
- status: z.ZodEnum<{
2272
- failed: "failed";
2273
- passed: "passed";
2274
- canceled: "canceled";
2275
- skipped: "skipped";
2276
- aborted: "aborted";
2277
- }>;
2278
- }, z.core.$strip>>;
2279
- total: z.ZodNumber;
2280
- }, z.core.$strip>;
2281
- runId: RunId;
2282
- runStatus: z.ZodEnum<{
2283
- failed: "failed";
2284
- queued: "queued";
2285
- running: "running";
2286
- passed: "passed";
2287
- canceled: "canceled";
2288
- superseded: "superseded";
2289
- }>;
2290
- artifacts: z.ZodObject<{}, z.core.$strict>;
2291
- artifactStatus: z.ZodLiteral<"not-captured">;
2292
- attempt: z.ZodObject<{
2293
- attemptId: PublicIdSchema;
2294
- completedAt: z.ZodOptional<z.ZodISODateTime>;
2295
- createdAt: z.ZodISODateTime;
2296
- error: z.ZodOptional<z.ZodString>;
2297
- startedAt: z.ZodOptional<z.ZodISODateTime>;
2298
- kind: z.ZodLiteral<"manual">;
2299
- status: z.ZodLiteral<"passed">;
2300
- }, z.core.$strip>;
2301
- }, z.core.$strip>], "artifactStatus">;
2302
- };
2303
2493
  listScreenshotComparisons: {
2304
2494
  readonly annotationJustifications: {
2305
2495
  readonly destructiveHint: "Does not change baselines, results or the run.";
@@ -2563,7 +2753,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2563
2753
  readonly openWorldHint: false;
2564
2754
  readonly readOnlyHint: false;
2565
2755
  };
2566
- readonly description: "Take one screenshot of an interactive runner's screen. On a runner with a browser the image is the whole virtual desktop, browser window and all; this refreshes the inactivity timer and can extend the runner's billed lifetime. On a mobile runner it is the device's own screen, re-encoded to JPEG on the pod so this contract reads one image format regardless of runner family. `screen-needs-a-run` if the runner's virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` with a flow that opens a browser, then ask for the screen again. On a runner image with a browser that has never run anything, any `runner.performAction` also starts the browser itself. Evaluating a snippet does not start the desktop. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. `runner-has-no-screen` if this runner has no browser desktop to see or drive, and retrying will never help. Launch a `playwright` runner, or on `windows` use `runner.runFlow`. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may be too busy to answer. Nothing was changed, so retrying is safe; if it persists, launch the runner again.";
2756
+ readonly description: "Take one screenshot of an interactive runner's screen. On a runner with a browser the image is the whole virtual desktop, browser window and all; this refreshes the inactivity timer and can extend the runner's billed lifetime. On a mobile runner it is the device's own screen, and on Windows the VM's whole desktop, re-encoded to JPEG on the pod so this contract reads one image format regardless of runner family. `screen-needs-a-run` if the runner's virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` with a flow that opens a browser, then ask for the screen again. On a Windows runner any flow run claims the VM and brings up its screen. On a runner image with a browser that has never run anything, any `runner.performAction` also starts the browser itself. Evaluating a snippet does not start the desktop. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. `runner-has-no-screen` if this runner has no browser desktop to see or drive, and retrying will never help. Launch a `playwright` runner. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may be too busy to answer. Nothing was changed, so retrying is safe; if it persists, launch the runner again.";
2567
2757
  readonly input: z.ZodObject<{
2568
2758
  id: z.ZodString;
2569
2759
  workspaceId: z.ZodOptional<WorkspaceId>;
@@ -2644,8 +2834,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2644
2834
  endedAt: z.ZodISODateTime;
2645
2835
  id: z.ZodUUID;
2646
2836
  mode: z.ZodEnum<{
2647
- automatic: "automatic";
2648
2837
  manual: "manual";
2838
+ automatic: "automatic";
2649
2839
  }>;
2650
2840
  runIds: z.ZodArray<z.ZodString>;
2651
2841
  runnerId: z.ZodString;
@@ -2661,8 +2851,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2661
2851
  active: z.ZodOptional<z.ZodObject<{
2662
2852
  id: z.ZodUUID;
2663
2853
  mode: z.ZodEnum<{
2664
- automatic: "automatic";
2665
2854
  manual: "manual";
2855
+ automatic: "automatic";
2666
2856
  }>;
2667
2857
  startedAt: z.ZodISODateTime;
2668
2858
  }, z.core.$strip>>;
@@ -2713,8 +2903,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2713
2903
  endedAt: z.ZodISODateTime;
2714
2904
  id: z.ZodUUID;
2715
2905
  mode: z.ZodEnum<{
2716
- automatic: "automatic";
2717
2906
  manual: "manual";
2907
+ automatic: "automatic";
2718
2908
  }>;
2719
2909
  runIds: z.ZodArray<z.ZodString>;
2720
2910
  runnerId: z.ZodString;
@@ -2917,7 +3107,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2917
3107
  readonly openWorldHint: false;
2918
3108
  readonly readOnlyHint: true;
2919
3109
  };
2920
- readonly description: "Inspect one thing on a mobile interactive runner: the Appium session's status, the WebView contexts available, the current context's page source, or the elements at a point, carrying some text, or matching a selector. This does not refresh the runner's inactivity timer. Mobile only — a browser runner answers `runner-is-not-mobile`; call `runner.inspect` for a browser's equivalent surface instead. `what: \"session\"` always answers with the session's own status rather than `screen-needs-a-run`, since that is the question it exists to answer; the other three request kinds need a live session first and answer the same `screen-needs-a-run` or `screen-not-ready` outcomes `runner.performAction` and `runner.takeScreenshot` use, instead of reading anything when there is none. `screen-needs-a-run` means no Appium session has started on this runner yet — call `runner.runFlow` with a flow that opens one, then inspect again. `screen-not-ready` means the runner's Appium session exists but did not answer this instant, or more than one is somehow live — retry once; if it persists, relaunch the runner. `runner-is-not-mobile` means there is nothing here to inspect, and retrying will never help — launch an `android` or `ios` runner instead. `invalid-selector` (elements by selector only) means the selector itself could not be parsed under the given `strategy` — distinct from a selector that parsed fine but matched nothing, which answers `matches: []` instead. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may be too busy to answer. Nothing was changed, so retrying is safe; if it persists, launch the runner again.";
3110
+ readonly description: "Inspect one thing on a mobile or Windows interactive runner: the Appium session's status, the contexts available (WebViews on mobile, top-level windows on Windows), the current context's page source, or the elements at a point, carrying some text, or matching a selector. This does not refresh the runner's inactivity timer. Mobile and Windows only — a browser runner answers `runner-is-not-mobile`; call `runner.inspect` for a browser's equivalent surface instead. `what: \"session\"` always answers with the session's own status rather than `screen-needs-a-run`, since that is the question it exists to answer; the other three request kinds need a live session first and answer the same `screen-needs-a-run` or `screen-not-ready` outcomes `runner.performAction` and `runner.takeScreenshot` use, instead of reading anything when there is none. `screen-needs-a-run` means no Appium session has started on this runner yet — call `runner.runFlow` with a flow that opens one, then inspect again. `screen-not-ready` means the runner's Appium session exists but did not answer this instant, or more than one is somehow live — retry once; if it persists, relaunch the runner. `runner-is-not-mobile` means there is nothing here to inspect, and retrying will never help — launch an `android`, `ios` or `windows` runner instead. `invalid-selector` (elements by selector only) means the selector itself could not be parsed under the given `strategy` — distinct from a selector that parsed fine but matched nothing, which answers `matches: []` instead. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may be too busy to answer. Nothing was changed, so retrying is safe; if it persists, launch the runner again.";
2921
3111
  readonly input: z.ZodObject<{
2922
3112
  id: z.ZodString;
2923
3113
  request: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -3216,7 +3406,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3216
3406
  readonly openWorldHint: true;
3217
3407
  readonly readOnlyHint: false;
3218
3408
  };
3219
- readonly description: "Perform one raw action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate; on mobile, tap, swipe, fill, or type. One action per request, and the runner serves one at a time. A success means the action took effect. `action-failed`, with a reason, if it reached the runner and did not take effect. On a runner image with a browser, the first action on a runner that has never run anything starts its browser and waits for it, so it can take up to a minute to answer — no `runner.runFlow` is needed before acting; if the browser is still starting when the wait runs out, the answer is `screen-not-ready` and retrying converges. On a mobile runner, the same `screen-needs-a-run` and `screen-not-ready` outcomes mean no Appium session has started yet, or it did not answer this instant; `runner.runFlow` is what starts one, same as a browser. `screen-needs-a-run` if the browser could not be started that way — usually a runner whose runs all finished without starting its desktop; call `runner.runFlow` with a flow that opens a browser. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. `runner-has-no-screen` if this runner has no browser desktop to see or drive, and retrying will never help. Launch a `playwright` runner, or on `windows` use `runner.runFlow`. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may have stopped answering mid-action. This does not mean the action was not performed — take a screenshot before repeating it.";
3409
+ readonly description: "Perform one raw action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate; on mobile or Windows, also tap, swipe, or fill. One action per request, and the runner serves one at a time. A success means the action took effect. `action-failed`, with a reason, if it reached the runner and did not take effect. On a runner image with a browser, the first action on a runner that has never run anything starts its browser and waits for it, so it can take up to a minute to answer — no `runner.runFlow` is needed before acting; if the browser is still starting when the wait runs out, the answer is `screen-not-ready` and retrying converges. On a mobile or Windows runner, the same `screen-needs-a-run` and `screen-not-ready` outcomes mean no Appium session has started yet, or it did not answer this instant; `runner.runFlow` is what starts one, same as a browser. `screen-needs-a-run` if the browser could not be started that way — usually a runner whose runs all finished without starting its desktop; call `runner.runFlow` with a flow that opens a browser. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. `runner-has-no-screen` if this runner has no browser desktop to see or drive, and retrying will never help. Launch a `playwright` runner. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may have stopped answering mid-action. This does not mean the action was not performed — take a screenshot before repeating it.";
3220
3410
  readonly input: z.ZodObject<{
3221
3411
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
3222
3412
  button: z.ZodLiteral<"left" | "right" | "wheel" | "back" | "forward">;
@@ -3320,7 +3510,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3320
3510
  readonly openWorldHint: true;
3321
3511
  readonly readOnlyHint: false;
3322
3512
  };
3323
- readonly description: "Perform a sequence of raw actions on an interactive runner in one request, one after another, and answer with what happened to each. A `success` means every action took effect. A `failure` names the first action that did not (`failedIndex`, `failureReason`), the last one that did (`lastCompletedIndex`), and whether actions were left unperformed (`stoppedEarly`); `results` has one entry per action reached, in order. Read `effect` on an entry before sending its action again: `performed` means the runner did it; `not-performed` means the runner answered that it did not take effect, though a `navigate` that timed out may still be loading; `unknown` means the runner stopped answering with the action in flight (`runner-unreachable`), or its screen went quiet mid-action (`action-unconfirmed`), and it may have taken effect — a click that submitted a form, say — so take a screenshot instead of repeating it. A sequence gets about a minute to start its actions; an action it did not reach in time is `out-of-time`, nothing after it was attempted, and the rest can go in a new request. Everything `runner.performAction` says about a runner that has never run anything, a mobile runner, and the `screen-needs-a-run`, `screen-not-ready`, `runner-has-no-screen`, `action-not-supported-on-mobile` and `action-not-supported-on-browser` reasons holds for each action here.";
3513
+ readonly description: "Perform a sequence of raw actions on an interactive runner in one request, one after another, and answer with what happened to each. A `success` means every action took effect. A `failure` names the first action that did not (`failedIndex`, `failureReason`), the last one that did (`lastCompletedIndex`), and whether actions were left unperformed (`stoppedEarly`); `results` has one entry per action reached, in order. Read `effect` on an entry before sending its action again: `performed` means the runner did it; `not-performed` means the runner answered that it did not take effect, though a `navigate` that timed out may still be loading; `unknown` means the runner stopped answering with the action in flight (`runner-unreachable`), or its screen went quiet mid-action (`action-unconfirmed`), and it may have taken effect — a click that submitted a form, say — so take a screenshot instead of repeating it. A sequence gets about a minute to start its actions; an action it did not reach in time is `out-of-time`, nothing after it was attempted, and the rest can go in a new request. Everything `runner.performAction` says about a runner that has never run anything, a mobile or Windows runner, and the `screen-needs-a-run`, `screen-not-ready`, `runner-has-no-screen`, `action-not-supported-on-mobile` and `action-not-supported-on-browser` reasons holds for each action here.";
3324
3514
  readonly input: z.ZodObject<{
3325
3515
  actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3326
3516
  button: z.ZodLiteral<"left" | "right" | "wheel" | "back" | "forward">;
@@ -4431,14 +4621,210 @@ export declare const publicContractsV1: {
4431
4621
  }, z.core.$strip>;
4432
4622
  };
4433
4623
  };
4434
- codeHostIntegration: {
4435
- find: {
4624
+ attempt: {
4625
+ get: {
4436
4626
  readonly annotationJustifications: {
4437
- readonly destructiveHint: "Does not disconnect integrations or change repository access.";
4438
- readonly openWorldHint: "Reads QA Wolf integration records without contacting or changing GitHub or GitLab.";
4439
- readonly readOnlyHint: "Lists the workspace's stored code host integrations and settings link without modifying them.";
4440
- };
4441
- readonly annotations: {
4627
+ readonly destructiveHint: "Does not retry, cancel or alter the run attempt.";
4628
+ readonly openWorldHint: "Reads recorded QA Wolf artifacts without changing the application under test.";
4629
+ readonly readOnlyHint: "Retrieves a finished attempt's metadata and signed artifact URLs.";
4630
+ };
4631
+ readonly annotations: {
4632
+ readonly destructiveHint: false;
4633
+ readonly openWorldHint: false;
4634
+ readonly readOnlyHint: true;
4635
+ };
4636
+ readonly description: "Get a finished run attempt: its run and flow status, its place among that flow's attempts in the run, and signed links to its logs, trace, and video when they were captured.";
4637
+ readonly input: z.ZodObject<{
4638
+ attemptId: PublicIdSchema;
4639
+ }, z.core.$strip>;
4640
+ readonly kind: "read";
4641
+ readonly name: "attempt.get";
4642
+ readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
4643
+ flowId: PublicIdSchema;
4644
+ flowStatus: z.ZodEnum<{
4645
+ failed: "failed";
4646
+ queued: "queued";
4647
+ running: "running";
4648
+ passed: "passed";
4649
+ canceled: "canceled";
4650
+ }>;
4651
+ retryContext: z.ZodObject<{
4652
+ currentOrdinal: z.ZodNumber;
4653
+ next: z.ZodOptional<z.ZodObject<{
4654
+ attemptId: PublicIdSchema;
4655
+ status: z.ZodEnum<{
4656
+ failed: "failed";
4657
+ passed: "passed";
4658
+ canceled: "canceled";
4659
+ skipped: "skipped";
4660
+ aborted: "aborted";
4661
+ }>;
4662
+ }, z.core.$strip>>;
4663
+ previous: z.ZodOptional<z.ZodObject<{
4664
+ attemptId: PublicIdSchema;
4665
+ status: z.ZodEnum<{
4666
+ failed: "failed";
4667
+ passed: "passed";
4668
+ canceled: "canceled";
4669
+ skipped: "skipped";
4670
+ aborted: "aborted";
4671
+ }>;
4672
+ }, z.core.$strip>>;
4673
+ total: z.ZodNumber;
4674
+ }, z.core.$strip>;
4675
+ runId: PublicIdSchema;
4676
+ runStatus: z.ZodEnum<{
4677
+ failed: "failed";
4678
+ queued: "queued";
4679
+ running: "running";
4680
+ passed: "passed";
4681
+ canceled: "canceled";
4682
+ superseded: "superseded";
4683
+ }>;
4684
+ artifacts: z.ZodObject<{
4685
+ logsUrl: z.ZodOptional<z.ZodURL>;
4686
+ traceUrl: z.ZodOptional<z.ZodURL>;
4687
+ videoUrl: z.ZodOptional<z.ZodURL>;
4688
+ }, z.core.$strip>;
4689
+ artifactStatus: z.ZodLiteral<"signed">;
4690
+ attempt: z.ZodObject<{
4691
+ attemptId: PublicIdSchema;
4692
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
4693
+ createdAt: z.ZodISODateTime;
4694
+ error: z.ZodOptional<z.ZodString>;
4695
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
4696
+ kind: z.ZodLiteral<"automated">;
4697
+ status: z.ZodEnum<{
4698
+ failed: "failed";
4699
+ passed: "passed";
4700
+ canceled: "canceled";
4701
+ skipped: "skipped";
4702
+ aborted: "aborted";
4703
+ }>;
4704
+ }, z.core.$strip>;
4705
+ }, z.core.$strip>, z.ZodObject<{
4706
+ flowId: PublicIdSchema;
4707
+ flowStatus: z.ZodEnum<{
4708
+ failed: "failed";
4709
+ queued: "queued";
4710
+ running: "running";
4711
+ passed: "passed";
4712
+ canceled: "canceled";
4713
+ }>;
4714
+ retryContext: z.ZodObject<{
4715
+ currentOrdinal: z.ZodNumber;
4716
+ next: z.ZodOptional<z.ZodObject<{
4717
+ attemptId: PublicIdSchema;
4718
+ status: z.ZodEnum<{
4719
+ failed: "failed";
4720
+ passed: "passed";
4721
+ canceled: "canceled";
4722
+ skipped: "skipped";
4723
+ aborted: "aborted";
4724
+ }>;
4725
+ }, z.core.$strip>>;
4726
+ previous: z.ZodOptional<z.ZodObject<{
4727
+ attemptId: PublicIdSchema;
4728
+ status: z.ZodEnum<{
4729
+ failed: "failed";
4730
+ passed: "passed";
4731
+ canceled: "canceled";
4732
+ skipped: "skipped";
4733
+ aborted: "aborted";
4734
+ }>;
4735
+ }, z.core.$strip>>;
4736
+ total: z.ZodNumber;
4737
+ }, z.core.$strip>;
4738
+ runId: PublicIdSchema;
4739
+ runStatus: z.ZodEnum<{
4740
+ failed: "failed";
4741
+ queued: "queued";
4742
+ running: "running";
4743
+ passed: "passed";
4744
+ canceled: "canceled";
4745
+ superseded: "superseded";
4746
+ }>;
4747
+ artifacts: z.ZodObject<{}, z.core.$strict>;
4748
+ artifactStatus: z.ZodLiteral<"signing-failed">;
4749
+ attempt: z.ZodObject<{
4750
+ attemptId: PublicIdSchema;
4751
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
4752
+ createdAt: z.ZodISODateTime;
4753
+ error: z.ZodOptional<z.ZodString>;
4754
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
4755
+ kind: z.ZodLiteral<"automated">;
4756
+ status: z.ZodEnum<{
4757
+ failed: "failed";
4758
+ passed: "passed";
4759
+ canceled: "canceled";
4760
+ skipped: "skipped";
4761
+ aborted: "aborted";
4762
+ }>;
4763
+ }, z.core.$strip>;
4764
+ }, z.core.$strip>, z.ZodObject<{
4765
+ flowId: PublicIdSchema;
4766
+ flowStatus: z.ZodEnum<{
4767
+ failed: "failed";
4768
+ queued: "queued";
4769
+ running: "running";
4770
+ passed: "passed";
4771
+ canceled: "canceled";
4772
+ }>;
4773
+ retryContext: z.ZodObject<{
4774
+ currentOrdinal: z.ZodNumber;
4775
+ next: z.ZodOptional<z.ZodObject<{
4776
+ attemptId: PublicIdSchema;
4777
+ status: z.ZodEnum<{
4778
+ failed: "failed";
4779
+ passed: "passed";
4780
+ canceled: "canceled";
4781
+ skipped: "skipped";
4782
+ aborted: "aborted";
4783
+ }>;
4784
+ }, z.core.$strip>>;
4785
+ previous: z.ZodOptional<z.ZodObject<{
4786
+ attemptId: PublicIdSchema;
4787
+ status: z.ZodEnum<{
4788
+ failed: "failed";
4789
+ passed: "passed";
4790
+ canceled: "canceled";
4791
+ skipped: "skipped";
4792
+ aborted: "aborted";
4793
+ }>;
4794
+ }, z.core.$strip>>;
4795
+ total: z.ZodNumber;
4796
+ }, z.core.$strip>;
4797
+ runId: PublicIdSchema;
4798
+ runStatus: z.ZodEnum<{
4799
+ failed: "failed";
4800
+ queued: "queued";
4801
+ running: "running";
4802
+ passed: "passed";
4803
+ canceled: "canceled";
4804
+ superseded: "superseded";
4805
+ }>;
4806
+ artifacts: z.ZodObject<{}, z.core.$strict>;
4807
+ artifactStatus: z.ZodLiteral<"not-captured">;
4808
+ attempt: z.ZodObject<{
4809
+ attemptId: PublicIdSchema;
4810
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
4811
+ createdAt: z.ZodISODateTime;
4812
+ error: z.ZodOptional<z.ZodString>;
4813
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
4814
+ kind: z.ZodLiteral<"manual">;
4815
+ status: z.ZodLiteral<"passed">;
4816
+ }, z.core.$strip>;
4817
+ }, z.core.$strip>], "artifactStatus">;
4818
+ };
4819
+ };
4820
+ codeHostIntegration: {
4821
+ find: {
4822
+ readonly annotationJustifications: {
4823
+ readonly destructiveHint: "Does not disconnect integrations or change repository access.";
4824
+ readonly openWorldHint: "Reads QA Wolf integration records without contacting or changing GitHub or GitLab.";
4825
+ readonly readOnlyHint: "Lists the workspace's stored code host integrations and settings link without modifying them.";
4826
+ };
4827
+ readonly annotations: {
4442
4828
  readonly destructiveHint: false;
4443
4829
  readonly openWorldHint: false;
4444
4830
  readonly readOnlyHint: true;
@@ -5027,6 +5413,53 @@ export declare const publicContractsV1: {
5027
5413
  name: z.ZodString;
5028
5414
  }, z.core.$strip>;
5029
5415
  };
5416
+ discard: {
5417
+ readonly annotationJustifications: {
5418
+ readonly destructiveHint: "Terminates the environment for good: its runs are canceled and its flow changes are never promoted.";
5419
+ readonly openWorldHint: "Changes QA Wolf environments only, not the customer's own repository or deployments.";
5420
+ readonly readOnlyHint: "Terminates an environment and returns it terminated.";
5421
+ };
5422
+ readonly annotations: {
5423
+ readonly destructiveHint: true;
5424
+ readonly openWorldHint: false;
5425
+ readonly readOnlyHint: false;
5426
+ };
5427
+ readonly description: "Declare a preview environment's work discarded, typically when its pull request closes without merging: the environment is terminated and its flow changes are not promoted into its base. Returns the environment, now terminated. A terminated environment cannot be discarded again. Use environment.promote instead when the work is accepted.";
5428
+ readonly input: z.ZodObject<{
5429
+ environmentId: PublicIdSchema;
5430
+ workspaceId: z.ZodOptional<PublicIdSchema>;
5431
+ }, z.core.$strip>;
5432
+ readonly kind: "write";
5433
+ readonly name: "environment.discard";
5434
+ readonly output: z.ZodObject<{
5435
+ alias: z.ZodOptional<z.ZodString>;
5436
+ flowCodeBranch: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5437
+ lastSyncedCommitHash: z.ZodString;
5438
+ name: z.ZodString;
5439
+ syncStatus: z.ZodLiteral<"reconciled">;
5440
+ }, z.core.$strip>, z.ZodObject<{
5441
+ name: z.ZodString;
5442
+ syncStatus: z.ZodLiteral<"not-reconciled">;
5443
+ }, z.core.$strip>], "syncStatus">>;
5444
+ id: PublicIdSchema;
5445
+ isDefault: z.ZodBoolean;
5446
+ kind: z.ZodEnum<{
5447
+ static: "static";
5448
+ preview: "preview";
5449
+ }>;
5450
+ name: z.ZodString;
5451
+ runConcurrencyLimit: z.ZodString;
5452
+ status: z.ZodEnum<{
5453
+ running: "running";
5454
+ blocked: "blocked";
5455
+ "needs-investigation": "needs-investigation";
5456
+ ready: "ready";
5457
+ }>;
5458
+ terminatedAt: z.ZodOptional<z.ZodISODateTime>;
5459
+ variablesUrl: z.ZodOptional<z.ZodURL>;
5460
+ url: z.ZodURL;
5461
+ }, z.core.$strip>;
5462
+ };
5030
5463
  find: {
5031
5464
  readonly annotationJustifications: {
5032
5465
  readonly destructiveHint: "Does not edit environments, variables or branches.";
@@ -5180,6 +5613,48 @@ export declare const publicContractsV1: {
5180
5613
  variableNames: z.ZodArray<z.ZodString>;
5181
5614
  }, z.core.$strip>;
5182
5615
  };
5616
+ promote: {
5617
+ readonly annotationJustifications: {
5618
+ readonly destructiveHint: "Merges the environment's flow changes into its base and terminates the environment once they land.";
5619
+ readonly openWorldHint: "Changes QA Wolf flow code branches only, not the customer's own repository or deployments.";
5620
+ readonly readOnlyHint: "Records a promotion request that a background executor carries out.";
5621
+ };
5622
+ readonly annotations: {
5623
+ readonly destructiveHint: true;
5624
+ readonly openWorldHint: false;
5625
+ readonly readOnlyHint: false;
5626
+ };
5627
+ readonly description: "Declare a preview environment's work accepted, typically when its pull request merges: its flow changes are promoted into its base environment and the environment is terminated once they land. Returns the promotion in pending; poll promotion.get to learn how it settled. Calling again while a promotion is open returns that promotion. A conflict settles the promotion conflicted and cancels the environment's in-progress runs; promotion.get names the conflicting paths. Use environment.discard instead when the work is abandoned.";
5628
+ readonly input: z.ZodObject<{
5629
+ environmentId: PublicIdSchema;
5630
+ workspaceId: z.ZodOptional<PublicIdSchema>;
5631
+ }, z.core.$strip>;
5632
+ readonly kind: "write";
5633
+ readonly name: "environment.promote";
5634
+ readonly output: z.ZodObject<{
5635
+ aiTaskId: z.ZodOptional<PublicIdSchema>;
5636
+ baseEnvironmentId: PublicIdSchema;
5637
+ conflict: z.ZodOptional<z.ZodObject<{
5638
+ paths: z.ZodArray<z.ZodString>;
5639
+ sourceCommitHash: z.ZodString;
5640
+ targetCommitHash: z.ZodString;
5641
+ }, z.core.$strip>>;
5642
+ createdAt: z.ZodISODateTime;
5643
+ headEnvironmentId: PublicIdSchema;
5644
+ id: PublicIdSchema;
5645
+ promotedCommitHash: z.ZodOptional<z.ZodString>;
5646
+ settledAt: z.ZodOptional<z.ZodISODateTime>;
5647
+ status: z.ZodEnum<{
5648
+ pending: "pending";
5649
+ conflicted: "conflicted";
5650
+ resolving: "resolving";
5651
+ promoted: "promoted";
5652
+ "no-changes": "no-changes";
5653
+ abandoned: "abandoned";
5654
+ }>;
5655
+ url: z.ZodURL;
5656
+ }, z.core.$strip>;
5657
+ };
5183
5658
  setVariable: {
5184
5659
  readonly annotationJustifications: {
5185
5660
  readonly destructiveHint: "Can overwrite an existing variable value, while an unchanged value is skipped.";
@@ -5513,6 +5988,7 @@ export declare const publicContractsV1: {
5513
5988
  answer: z.ZodOptional<z.ZodString>;
5514
5989
  at: z.ZodISODateTime;
5515
5990
  reason: z.ZodOptional<z.ZodString>;
5991
+ text: z.ZodOptional<z.ZodString>;
5516
5992
  type: z.ZodString;
5517
5993
  }, z.core.$strip>>;
5518
5994
  state: z.ZodString;
@@ -6108,6 +6584,104 @@ export declare const publicContractsV1: {
6108
6584
  }, z.core.$strip>;
6109
6585
  };
6110
6586
  };
6587
+ promotion: {
6588
+ find: {
6589
+ readonly annotationJustifications: {
6590
+ readonly destructiveHint: "Does not change promotions, environments or flow code branches.";
6591
+ readonly openWorldHint: "Reads private QA Wolf promotion records without changing external systems.";
6592
+ readonly readOnlyHint: "Lists promotions in the authorized workspace without changing them.";
6593
+ };
6594
+ readonly annotations: {
6595
+ readonly destructiveHint: false;
6596
+ readonly openWorldHint: false;
6597
+ readonly readOnlyHint: true;
6598
+ };
6599
+ readonly description: "List environment promotions, newest first. A promotion moves the flow changes made in a head environment into its base environment. Filter by status conflicted to find the promotions whose conflicts still need a resolution.";
6600
+ readonly input: z.ZodObject<{
6601
+ cursor: z.ZodOptional<z.ZodString>;
6602
+ limit: z.ZodDefault<z.ZodNumber>;
6603
+ environmentId: z.ZodOptional<PublicIdSchema>;
6604
+ status: z.ZodOptional<z.ZodEnum<{
6605
+ pending: "pending";
6606
+ conflicted: "conflicted";
6607
+ resolving: "resolving";
6608
+ promoted: "promoted";
6609
+ "no-changes": "no-changes";
6610
+ abandoned: "abandoned";
6611
+ }>>;
6612
+ workspaceId: z.ZodOptional<PublicIdSchema>;
6613
+ }, z.core.$strip>;
6614
+ readonly kind: "read";
6615
+ readonly name: "promotion.find";
6616
+ readonly output: z.ZodObject<{
6617
+ nextCursor: z.ZodOptional<z.ZodString>;
6618
+ promotions: z.ZodArray<z.ZodObject<{
6619
+ aiTaskId: z.ZodOptional<PublicIdSchema>;
6620
+ baseEnvironmentId: PublicIdSchema;
6621
+ conflict: z.ZodOptional<z.ZodObject<{
6622
+ paths: z.ZodArray<z.ZodString>;
6623
+ sourceCommitHash: z.ZodString;
6624
+ targetCommitHash: z.ZodString;
6625
+ }, z.core.$strip>>;
6626
+ createdAt: z.ZodISODateTime;
6627
+ headEnvironmentId: PublicIdSchema;
6628
+ id: PublicIdSchema;
6629
+ promotedCommitHash: z.ZodOptional<z.ZodString>;
6630
+ settledAt: z.ZodOptional<z.ZodISODateTime>;
6631
+ status: z.ZodEnum<{
6632
+ pending: "pending";
6633
+ conflicted: "conflicted";
6634
+ resolving: "resolving";
6635
+ promoted: "promoted";
6636
+ "no-changes": "no-changes";
6637
+ abandoned: "abandoned";
6638
+ }>;
6639
+ url: z.ZodURL;
6640
+ }, z.core.$strip>>;
6641
+ }, z.core.$strip>;
6642
+ };
6643
+ get: {
6644
+ readonly annotationJustifications: {
6645
+ readonly destructiveHint: "Does not change the promotion, its environments or flow code branches.";
6646
+ readonly openWorldHint: "Reads a private QA Wolf promotion record without changing external systems.";
6647
+ readonly readOnlyHint: "Retrieves one authorized promotion's status and conflict without changing it.";
6648
+ };
6649
+ readonly annotations: {
6650
+ readonly destructiveHint: false;
6651
+ readonly openWorldHint: false;
6652
+ readonly readOnlyHint: true;
6653
+ };
6654
+ readonly description: "Read one environment promotion: its status, the conflicting paths and commit hashes while it is conflicted or resolving, the commit it landed when promoted, and the AI task resolving it. Poll it after environment.promote to learn how the promotion settled. It does not serve file contents; a resolver reads both branches from the flow code repository.";
6655
+ readonly input: z.ZodObject<{
6656
+ promotionId: PublicIdSchema;
6657
+ }, z.core.$strip>;
6658
+ readonly kind: "read";
6659
+ readonly name: "promotion.get";
6660
+ readonly output: z.ZodObject<{
6661
+ aiTaskId: z.ZodOptional<PublicIdSchema>;
6662
+ baseEnvironmentId: PublicIdSchema;
6663
+ conflict: z.ZodOptional<z.ZodObject<{
6664
+ paths: z.ZodArray<z.ZodString>;
6665
+ sourceCommitHash: z.ZodString;
6666
+ targetCommitHash: z.ZodString;
6667
+ }, z.core.$strip>>;
6668
+ createdAt: z.ZodISODateTime;
6669
+ headEnvironmentId: PublicIdSchema;
6670
+ id: PublicIdSchema;
6671
+ promotedCommitHash: z.ZodOptional<z.ZodString>;
6672
+ settledAt: z.ZodOptional<z.ZodISODateTime>;
6673
+ status: z.ZodEnum<{
6674
+ pending: "pending";
6675
+ conflicted: "conflicted";
6676
+ resolving: "resolving";
6677
+ promoted: "promoted";
6678
+ "no-changes": "no-changes";
6679
+ abandoned: "abandoned";
6680
+ }>;
6681
+ url: z.ZodURL;
6682
+ }, z.core.$strip>;
6683
+ };
6684
+ };
6111
6685
  run: {
6112
6686
  acceptScreenshotBaseline: {
6113
6687
  readonly annotationJustifications: {
@@ -6443,200 +7017,6 @@ export declare const publicContractsV1: {
6443
7017
  url: z.ZodURL;
6444
7018
  }, z.core.$strip>;
6445
7019
  };
6446
- getAttemptArtifacts: {
6447
- readonly annotationJustifications: {
6448
- readonly destructiveHint: "Does not retry, cancel or alter the run attempt.";
6449
- readonly openWorldHint: "Reads recorded QA Wolf artifacts without changing the application under test.";
6450
- readonly readOnlyHint: "Retrieves a finished attempt's metadata and signed artifact URLs.";
6451
- };
6452
- readonly annotations: {
6453
- readonly destructiveHint: false;
6454
- readonly openWorldHint: false;
6455
- readonly readOnlyHint: true;
6456
- };
6457
- readonly description: "Get metadata and signed artifact URLs for one finished run attempt.";
6458
- readonly input: z.ZodObject<{
6459
- attemptId: PublicIdSchema;
6460
- }, z.core.$strip>;
6461
- readonly kind: "read";
6462
- readonly name: "run.getAttemptArtifacts";
6463
- readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
6464
- flowId: PublicIdSchema;
6465
- flowStatus: z.ZodEnum<{
6466
- failed: "failed";
6467
- queued: "queued";
6468
- running: "running";
6469
- passed: "passed";
6470
- canceled: "canceled";
6471
- }>;
6472
- retryContext: z.ZodObject<{
6473
- currentOrdinal: z.ZodNumber;
6474
- next: z.ZodOptional<z.ZodObject<{
6475
- attemptId: PublicIdSchema;
6476
- status: z.ZodEnum<{
6477
- failed: "failed";
6478
- passed: "passed";
6479
- canceled: "canceled";
6480
- skipped: "skipped";
6481
- aborted: "aborted";
6482
- }>;
6483
- }, z.core.$strip>>;
6484
- previous: z.ZodOptional<z.ZodObject<{
6485
- attemptId: PublicIdSchema;
6486
- status: z.ZodEnum<{
6487
- failed: "failed";
6488
- passed: "passed";
6489
- canceled: "canceled";
6490
- skipped: "skipped";
6491
- aborted: "aborted";
6492
- }>;
6493
- }, z.core.$strip>>;
6494
- total: z.ZodNumber;
6495
- }, z.core.$strip>;
6496
- runId: PublicIdSchema;
6497
- runStatus: z.ZodEnum<{
6498
- failed: "failed";
6499
- queued: "queued";
6500
- running: "running";
6501
- passed: "passed";
6502
- canceled: "canceled";
6503
- superseded: "superseded";
6504
- }>;
6505
- artifacts: z.ZodObject<{
6506
- logsUrl: z.ZodOptional<z.ZodURL>;
6507
- traceUrl: z.ZodOptional<z.ZodURL>;
6508
- videoUrl: z.ZodOptional<z.ZodURL>;
6509
- }, z.core.$strip>;
6510
- artifactStatus: z.ZodLiteral<"signed">;
6511
- attempt: z.ZodObject<{
6512
- attemptId: PublicIdSchema;
6513
- completedAt: z.ZodOptional<z.ZodISODateTime>;
6514
- createdAt: z.ZodISODateTime;
6515
- error: z.ZodOptional<z.ZodString>;
6516
- startedAt: z.ZodOptional<z.ZodISODateTime>;
6517
- kind: z.ZodLiteral<"automated">;
6518
- status: z.ZodEnum<{
6519
- failed: "failed";
6520
- passed: "passed";
6521
- canceled: "canceled";
6522
- skipped: "skipped";
6523
- aborted: "aborted";
6524
- }>;
6525
- }, z.core.$strip>;
6526
- }, z.core.$strip>, z.ZodObject<{
6527
- flowId: PublicIdSchema;
6528
- flowStatus: z.ZodEnum<{
6529
- failed: "failed";
6530
- queued: "queued";
6531
- running: "running";
6532
- passed: "passed";
6533
- canceled: "canceled";
6534
- }>;
6535
- retryContext: z.ZodObject<{
6536
- currentOrdinal: z.ZodNumber;
6537
- next: z.ZodOptional<z.ZodObject<{
6538
- attemptId: PublicIdSchema;
6539
- status: z.ZodEnum<{
6540
- failed: "failed";
6541
- passed: "passed";
6542
- canceled: "canceled";
6543
- skipped: "skipped";
6544
- aborted: "aborted";
6545
- }>;
6546
- }, z.core.$strip>>;
6547
- previous: z.ZodOptional<z.ZodObject<{
6548
- attemptId: PublicIdSchema;
6549
- status: z.ZodEnum<{
6550
- failed: "failed";
6551
- passed: "passed";
6552
- canceled: "canceled";
6553
- skipped: "skipped";
6554
- aborted: "aborted";
6555
- }>;
6556
- }, z.core.$strip>>;
6557
- total: z.ZodNumber;
6558
- }, z.core.$strip>;
6559
- runId: PublicIdSchema;
6560
- runStatus: z.ZodEnum<{
6561
- failed: "failed";
6562
- queued: "queued";
6563
- running: "running";
6564
- passed: "passed";
6565
- canceled: "canceled";
6566
- superseded: "superseded";
6567
- }>;
6568
- artifacts: z.ZodObject<{}, z.core.$strict>;
6569
- artifactStatus: z.ZodLiteral<"signing-failed">;
6570
- attempt: z.ZodObject<{
6571
- attemptId: PublicIdSchema;
6572
- completedAt: z.ZodOptional<z.ZodISODateTime>;
6573
- createdAt: z.ZodISODateTime;
6574
- error: z.ZodOptional<z.ZodString>;
6575
- startedAt: z.ZodOptional<z.ZodISODateTime>;
6576
- kind: z.ZodLiteral<"automated">;
6577
- status: z.ZodEnum<{
6578
- failed: "failed";
6579
- passed: "passed";
6580
- canceled: "canceled";
6581
- skipped: "skipped";
6582
- aborted: "aborted";
6583
- }>;
6584
- }, z.core.$strip>;
6585
- }, z.core.$strip>, z.ZodObject<{
6586
- flowId: PublicIdSchema;
6587
- flowStatus: z.ZodEnum<{
6588
- failed: "failed";
6589
- queued: "queued";
6590
- running: "running";
6591
- passed: "passed";
6592
- canceled: "canceled";
6593
- }>;
6594
- retryContext: z.ZodObject<{
6595
- currentOrdinal: z.ZodNumber;
6596
- next: z.ZodOptional<z.ZodObject<{
6597
- attemptId: PublicIdSchema;
6598
- status: z.ZodEnum<{
6599
- failed: "failed";
6600
- passed: "passed";
6601
- canceled: "canceled";
6602
- skipped: "skipped";
6603
- aborted: "aborted";
6604
- }>;
6605
- }, z.core.$strip>>;
6606
- previous: z.ZodOptional<z.ZodObject<{
6607
- attemptId: PublicIdSchema;
6608
- status: z.ZodEnum<{
6609
- failed: "failed";
6610
- passed: "passed";
6611
- canceled: "canceled";
6612
- skipped: "skipped";
6613
- aborted: "aborted";
6614
- }>;
6615
- }, z.core.$strip>>;
6616
- total: z.ZodNumber;
6617
- }, z.core.$strip>;
6618
- runId: PublicIdSchema;
6619
- runStatus: z.ZodEnum<{
6620
- failed: "failed";
6621
- queued: "queued";
6622
- running: "running";
6623
- passed: "passed";
6624
- canceled: "canceled";
6625
- superseded: "superseded";
6626
- }>;
6627
- artifacts: z.ZodObject<{}, z.core.$strict>;
6628
- artifactStatus: z.ZodLiteral<"not-captured">;
6629
- attempt: z.ZodObject<{
6630
- attemptId: PublicIdSchema;
6631
- completedAt: z.ZodOptional<z.ZodISODateTime>;
6632
- createdAt: z.ZodISODateTime;
6633
- error: z.ZodOptional<z.ZodString>;
6634
- startedAt: z.ZodOptional<z.ZodISODateTime>;
6635
- kind: z.ZodLiteral<"manual">;
6636
- status: z.ZodLiteral<"passed">;
6637
- }, z.core.$strip>;
6638
- }, z.core.$strip>], "artifactStatus">;
6639
- };
6640
7020
  listScreenshotComparisons: {
6641
7021
  readonly annotationJustifications: {
6642
7022
  readonly destructiveHint: "Does not change baselines, results or the run.";
@@ -6900,7 +7280,7 @@ export declare const publicContractsV1: {
6900
7280
  readonly openWorldHint: false;
6901
7281
  readonly readOnlyHint: false;
6902
7282
  };
6903
- readonly description: "Take one screenshot of an interactive runner's screen. On a runner with a browser the image is the whole virtual desktop, browser window and all; this refreshes the inactivity timer and can extend the runner's billed lifetime. On a mobile runner it is the device's own screen, re-encoded to JPEG on the pod so this contract reads one image format regardless of runner family. `screen-needs-a-run` if the runner's virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` with a flow that opens a browser, then ask for the screen again. On a runner image with a browser that has never run anything, any `runner.performAction` also starts the browser itself. Evaluating a snippet does not start the desktop. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. `runner-has-no-screen` if this runner has no browser desktop to see or drive, and retrying will never help. Launch a `playwright` runner, or on `windows` use `runner.runFlow`. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may be too busy to answer. Nothing was changed, so retrying is safe; if it persists, launch the runner again.";
7283
+ readonly description: "Take one screenshot of an interactive runner's screen. On a runner with a browser the image is the whole virtual desktop, browser window and all; this refreshes the inactivity timer and can extend the runner's billed lifetime. On a mobile runner it is the device's own screen, and on Windows the VM's whole desktop, re-encoded to JPEG on the pod so this contract reads one image format regardless of runner family. `screen-needs-a-run` if the runner's virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` with a flow that opens a browser, then ask for the screen again. On a Windows runner any flow run claims the VM and brings up its screen. On a runner image with a browser that has never run anything, any `runner.performAction` also starts the browser itself. Evaluating a snippet does not start the desktop. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. `runner-has-no-screen` if this runner has no browser desktop to see or drive, and retrying will never help. Launch a `playwright` runner. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may be too busy to answer. Nothing was changed, so retrying is safe; if it persists, launch the runner again.";
6904
7284
  readonly input: z.ZodObject<{
6905
7285
  id: z.ZodString;
6906
7286
  workspaceId: z.ZodOptional<PublicIdSchema>;
@@ -6981,8 +7361,8 @@ export declare const publicContractsV1: {
6981
7361
  endedAt: z.ZodISODateTime;
6982
7362
  id: z.ZodUUID;
6983
7363
  mode: z.ZodEnum<{
6984
- automatic: "automatic";
6985
7364
  manual: "manual";
7365
+ automatic: "automatic";
6986
7366
  }>;
6987
7367
  runIds: z.ZodArray<z.ZodString>;
6988
7368
  runnerId: z.ZodString;
@@ -6998,8 +7378,8 @@ export declare const publicContractsV1: {
6998
7378
  active: z.ZodOptional<z.ZodObject<{
6999
7379
  id: z.ZodUUID;
7000
7380
  mode: z.ZodEnum<{
7001
- automatic: "automatic";
7002
7381
  manual: "manual";
7382
+ automatic: "automatic";
7003
7383
  }>;
7004
7384
  startedAt: z.ZodISODateTime;
7005
7385
  }, z.core.$strip>>;
@@ -7050,8 +7430,8 @@ export declare const publicContractsV1: {
7050
7430
  endedAt: z.ZodISODateTime;
7051
7431
  id: z.ZodUUID;
7052
7432
  mode: z.ZodEnum<{
7053
- automatic: "automatic";
7054
7433
  manual: "manual";
7434
+ automatic: "automatic";
7055
7435
  }>;
7056
7436
  runIds: z.ZodArray<z.ZodString>;
7057
7437
  runnerId: z.ZodString;
@@ -7254,7 +7634,7 @@ export declare const publicContractsV1: {
7254
7634
  readonly openWorldHint: false;
7255
7635
  readonly readOnlyHint: true;
7256
7636
  };
7257
- readonly description: "Inspect one thing on a mobile interactive runner: the Appium session's status, the WebView contexts available, the current context's page source, or the elements at a point, carrying some text, or matching a selector. This does not refresh the runner's inactivity timer. Mobile only — a browser runner answers `runner-is-not-mobile`; call `runner.inspect` for a browser's equivalent surface instead. `what: \"session\"` always answers with the session's own status rather than `screen-needs-a-run`, since that is the question it exists to answer; the other three request kinds need a live session first and answer the same `screen-needs-a-run` or `screen-not-ready` outcomes `runner.performAction` and `runner.takeScreenshot` use, instead of reading anything when there is none. `screen-needs-a-run` means no Appium session has started on this runner yet — call `runner.runFlow` with a flow that opens one, then inspect again. `screen-not-ready` means the runner's Appium session exists but did not answer this instant, or more than one is somehow live — retry once; if it persists, relaunch the runner. `runner-is-not-mobile` means there is nothing here to inspect, and retrying will never help — launch an `android` or `ios` runner instead. `invalid-selector` (elements by selector only) means the selector itself could not be parsed under the given `strategy` — distinct from a selector that parsed fine but matched nothing, which answers `matches: []` instead. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may be too busy to answer. Nothing was changed, so retrying is safe; if it persists, launch the runner again.";
7637
+ readonly description: "Inspect one thing on a mobile or Windows interactive runner: the Appium session's status, the contexts available (WebViews on mobile, top-level windows on Windows), the current context's page source, or the elements at a point, carrying some text, or matching a selector. This does not refresh the runner's inactivity timer. Mobile and Windows only — a browser runner answers `runner-is-not-mobile`; call `runner.inspect` for a browser's equivalent surface instead. `what: \"session\"` always answers with the session's own status rather than `screen-needs-a-run`, since that is the question it exists to answer; the other three request kinds need a live session first and answer the same `screen-needs-a-run` or `screen-not-ready` outcomes `runner.performAction` and `runner.takeScreenshot` use, instead of reading anything when there is none. `screen-needs-a-run` means no Appium session has started on this runner yet — call `runner.runFlow` with a flow that opens one, then inspect again. `screen-not-ready` means the runner's Appium session exists but did not answer this instant, or more than one is somehow live — retry once; if it persists, relaunch the runner. `runner-is-not-mobile` means there is nothing here to inspect, and retrying will never help — launch an `android`, `ios` or `windows` runner instead. `invalid-selector` (elements by selector only) means the selector itself could not be parsed under the given `strategy` — distinct from a selector that parsed fine but matched nothing, which answers `matches: []` instead. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may be too busy to answer. Nothing was changed, so retrying is safe; if it persists, launch the runner again.";
7258
7638
  readonly input: z.ZodObject<{
7259
7639
  id: z.ZodString;
7260
7640
  request: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -7553,7 +7933,7 @@ export declare const publicContractsV1: {
7553
7933
  readonly openWorldHint: true;
7554
7934
  readonly readOnlyHint: false;
7555
7935
  };
7556
- readonly description: "Perform one raw action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate; on mobile, tap, swipe, fill, or type. One action per request, and the runner serves one at a time. A success means the action took effect. `action-failed`, with a reason, if it reached the runner and did not take effect. On a runner image with a browser, the first action on a runner that has never run anything starts its browser and waits for it, so it can take up to a minute to answer — no `runner.runFlow` is needed before acting; if the browser is still starting when the wait runs out, the answer is `screen-not-ready` and retrying converges. On a mobile runner, the same `screen-needs-a-run` and `screen-not-ready` outcomes mean no Appium session has started yet, or it did not answer this instant; `runner.runFlow` is what starts one, same as a browser. `screen-needs-a-run` if the browser could not be started that way — usually a runner whose runs all finished without starting its desktop; call `runner.runFlow` with a flow that opens a browser. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. `runner-has-no-screen` if this runner has no browser desktop to see or drive, and retrying will never help. Launch a `playwright` runner, or on `windows` use `runner.runFlow`. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may have stopped answering mid-action. This does not mean the action was not performed — take a screenshot before repeating it.";
7936
+ readonly description: "Perform one raw action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate; on mobile or Windows, also tap, swipe, or fill. One action per request, and the runner serves one at a time. A success means the action took effect. `action-failed`, with a reason, if it reached the runner and did not take effect. On a runner image with a browser, the first action on a runner that has never run anything starts its browser and waits for it, so it can take up to a minute to answer — no `runner.runFlow` is needed before acting; if the browser is still starting when the wait runs out, the answer is `screen-not-ready` and retrying converges. On a mobile or Windows runner, the same `screen-needs-a-run` and `screen-not-ready` outcomes mean no Appium session has started yet, or it did not answer this instant; `runner.runFlow` is what starts one, same as a browser. `screen-needs-a-run` if the browser could not be started that way — usually a runner whose runs all finished without starting its desktop; call `runner.runFlow` with a flow that opens a browser. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. `runner-has-no-screen` if this runner has no browser desktop to see or drive, and retrying will never help. Launch a `playwright` runner. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may have stopped answering mid-action. This does not mean the action was not performed — take a screenshot before repeating it.";
7557
7937
  readonly input: z.ZodObject<{
7558
7938
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
7559
7939
  button: z.ZodLiteral<"left" | "right" | "wheel" | "back" | "forward">;
@@ -7657,7 +8037,7 @@ export declare const publicContractsV1: {
7657
8037
  readonly openWorldHint: true;
7658
8038
  readonly readOnlyHint: false;
7659
8039
  };
7660
- readonly description: "Perform a sequence of raw actions on an interactive runner in one request, one after another, and answer with what happened to each. A `success` means every action took effect. A `failure` names the first action that did not (`failedIndex`, `failureReason`), the last one that did (`lastCompletedIndex`), and whether actions were left unperformed (`stoppedEarly`); `results` has one entry per action reached, in order. Read `effect` on an entry before sending its action again: `performed` means the runner did it; `not-performed` means the runner answered that it did not take effect, though a `navigate` that timed out may still be loading; `unknown` means the runner stopped answering with the action in flight (`runner-unreachable`), or its screen went quiet mid-action (`action-unconfirmed`), and it may have taken effect — a click that submitted a form, say — so take a screenshot instead of repeating it. A sequence gets about a minute to start its actions; an action it did not reach in time is `out-of-time`, nothing after it was attempted, and the rest can go in a new request. Everything `runner.performAction` says about a runner that has never run anything, a mobile runner, and the `screen-needs-a-run`, `screen-not-ready`, `runner-has-no-screen`, `action-not-supported-on-mobile` and `action-not-supported-on-browser` reasons holds for each action here.";
8040
+ readonly description: "Perform a sequence of raw actions on an interactive runner in one request, one after another, and answer with what happened to each. A `success` means every action took effect. A `failure` names the first action that did not (`failedIndex`, `failureReason`), the last one that did (`lastCompletedIndex`), and whether actions were left unperformed (`stoppedEarly`); `results` has one entry per action reached, in order. Read `effect` on an entry before sending its action again: `performed` means the runner did it; `not-performed` means the runner answered that it did not take effect, though a `navigate` that timed out may still be loading; `unknown` means the runner stopped answering with the action in flight (`runner-unreachable`), or its screen went quiet mid-action (`action-unconfirmed`), and it may have taken effect — a click that submitted a form, say — so take a screenshot instead of repeating it. A sequence gets about a minute to start its actions; an action it did not reach in time is `out-of-time`, nothing after it was attempted, and the rest can go in a new request. Everything `runner.performAction` says about a runner that has never run anything, a mobile or Windows runner, and the `screen-needs-a-run`, `screen-not-ready`, `runner-has-no-screen`, `action-not-supported-on-mobile` and `action-not-supported-on-browser` reasons holds for each action here.";
7661
8041
  readonly input: z.ZodObject<{
7662
8042
  actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7663
8043
  button: z.ZodLiteral<"left" | "right" | "wheel" | "back" | "forward">;