@qawolf/api-contracts 0.81.0 → 0.85.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 (90) hide show
  1. package/dist/v1/agent/get.d.ts +1 -1
  2. package/dist/v1/agent/get.js +1 -1
  3. package/dist/v1/agent/get.js.map +1 -1
  4. package/dist/v1/agent/wait.d.ts +1 -1
  5. package/dist/v1/{run/getAttemptArtifacts.d.ts → attempt/get.d.ts} +4 -4
  6. package/dist/v1/attempt/get.d.ts.map +1 -0
  7. package/dist/v1/{run/getAttemptArtifacts.js → attempt/get.js} +5 -5
  8. package/dist/v1/attempt/get.js.map +1 -0
  9. package/dist/v1/environment/discard.d.ts +54 -0
  10. package/dist/v1/environment/discard.d.ts.map +1 -0
  11. package/dist/v1/environment/discard.js +28 -0
  12. package/dist/v1/environment/discard.js.map +1 -0
  13. package/dist/v1/environment/promote.d.ts +51 -0
  14. package/dist/v1/environment/promote.d.ts.map +1 -0
  15. package/dist/v1/environment/promote.js +28 -0
  16. package/dist/v1/environment/promote.js.map +1 -0
  17. package/dist/v1/ids.d.ts +3 -1
  18. package/dist/v1/ids.d.ts.map +1 -1
  19. package/dist/v1/ids.js +4 -0
  20. package/dist/v1/ids.js.map +1 -1
  21. package/dist/v1/index.d.ts +1006 -533
  22. package/dist/v1/index.d.ts.map +1 -1
  23. package/dist/v1/index.js +11 -2
  24. package/dist/v1/index.js.map +1 -1
  25. package/dist/v1/investigation/finding.d.ts +1 -0
  26. package/dist/v1/investigation/finding.d.ts.map +1 -1
  27. package/dist/v1/investigation/finding.js +5 -1
  28. package/dist/v1/investigation/finding.js.map +1 -1
  29. package/dist/v1/investigation/get.d.ts +1 -0
  30. package/dist/v1/investigation/get.d.ts.map +1 -1
  31. package/dist/v1/investigation/index.d.ts +1 -0
  32. package/dist/v1/investigation/index.d.ts.map +1 -1
  33. package/dist/v1/issue/addFlows.d.ts +1 -1
  34. package/dist/v1/issue/create.d.ts +1 -1
  35. package/dist/v1/issue/index.d.ts +5 -5
  36. package/dist/v1/issue/removeFlows.d.ts +1 -1
  37. package/dist/v1/issue/update.d.ts +2 -2
  38. package/dist/v1/promotion/find.d.ts +64 -0
  39. package/dist/v1/promotion/find.d.ts.map +1 -0
  40. package/dist/v1/promotion/find.js +41 -0
  41. package/dist/v1/promotion/find.js.map +1 -0
  42. package/dist/v1/promotion/get.d.ts +48 -0
  43. package/dist/v1/promotion/get.d.ts.map +1 -0
  44. package/dist/v1/promotion/get.js +24 -0
  45. package/dist/v1/promotion/get.js.map +1 -0
  46. package/dist/v1/promotion/index.d.ts +155 -0
  47. package/dist/v1/promotion/index.d.ts.map +1 -0
  48. package/dist/v1/promotion/index.js +13 -0
  49. package/dist/v1/promotion/index.js.map +1 -0
  50. package/dist/v1/promotion/resolve.d.ts +57 -0
  51. package/dist/v1/promotion/resolve.d.ts.map +1 -0
  52. package/dist/v1/promotion/resolve.js +59 -0
  53. package/dist/v1/promotion/resolve.js.map +1 -0
  54. package/dist/v1/promotion/resource.d.ts +39 -0
  55. package/dist/v1/promotion/resource.d.ts.map +1 -0
  56. package/dist/v1/promotion/resource.js +45 -0
  57. package/dist/v1/promotion/resource.js.map +1 -0
  58. package/dist/v1/run/diagnose.d.ts +1 -1
  59. package/dist/v1/run/reattempt.d.ts +1 -0
  60. package/dist/v1/run/reattempt.d.ts.map +1 -1
  61. package/dist/v1/run/reattempt.js +10 -1
  62. package/dist/v1/run/reattempt.js.map +1 -1
  63. package/dist/v1/runner/catalog.d.ts +8 -8
  64. package/dist/v1/runner/evaluateSnippet.d.ts +1 -1
  65. package/dist/v1/runner/inspect.js +1 -1
  66. package/dist/v1/runner/inspect.js.map +1 -1
  67. package/dist/v1/runner/inspectMobile.d.ts +1 -1
  68. package/dist/v1/runner/inspectMobile.d.ts.map +1 -1
  69. package/dist/v1/runner/inspectMobile.js +11 -5
  70. package/dist/v1/runner/inspectMobile.js.map +1 -1
  71. package/dist/v1/runner/performAction.d.ts +1 -1
  72. package/dist/v1/runner/performAction.d.ts.map +1 -1
  73. package/dist/v1/runner/performAction.js +6 -5
  74. package/dist/v1/runner/performAction.js.map +1 -1
  75. package/dist/v1/runner/performActions.d.ts +1 -1
  76. package/dist/v1/runner/performActions.js +1 -1
  77. package/dist/v1/runner/performActions.js.map +1 -1
  78. package/dist/v1/runner/recording.d.ts +10 -10
  79. package/dist/v1/runner/runnerAction.d.ts +1 -1
  80. package/dist/v1/runner/runnerAction.js +1 -1
  81. package/dist/v1/runner/screen.d.ts +2 -2
  82. package/dist/v1/runner/screen.d.ts.map +1 -1
  83. package/dist/v1/runner/screen.js +2 -2
  84. package/dist/v1/runner/screen.js.map +1 -1
  85. package/dist/v1/runner/takeScreenshot.d.ts +1 -1
  86. package/dist/v1/runner/takeScreenshot.js +1 -1
  87. package/dist/v1/runner/takeScreenshot.js.map +1 -1
  88. package/package.json +1 -1
  89. package/dist/v1/run/getAttemptArtifacts.d.ts.map +0 -1
  90. package/dist/v1/run/getAttemptArtifacts.js.map +0 -1
@@ -1,4 +1,5 @@
1
1
  import type { z } from "zod";
2
+ export { maxResolvedFileBytes } from "./promotion/index.js";
2
3
  export * from "./sharedSchemas.js";
3
4
  import type { AnyPublicApiContract } from "./definition.js";
4
5
  import { type PublicIdSchema, type PublicIdSchemasOf } from "./ids.js";
@@ -11,7 +12,7 @@ export type PublicApiOutput<Api extends AnyPublicApiContract> = z.infer<Api["out
11
12
  * the same factory with its own strict id schemas, so the contract shape can
12
13
  * never drift between the two while validation strictness stays server-owned.
13
14
  */
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"> & {
15
+ 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
16
  runAttempt?: RunAttemptId;
16
17
  }) => {
17
18
  agent: {
@@ -51,8 +52,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
51
52
  }>;
52
53
  waitSeconds: z.ZodOptional<z.ZodNumber>;
53
54
  wokeOn: z.ZodOptional<z.ZodEnum<{
54
- reply: "reply";
55
55
  status: "status";
56
+ reply: "reply";
56
57
  timeout: "timeout";
57
58
  }>>;
58
59
  url: z.ZodURL;
@@ -94,6 +95,202 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
94
95
  }, z.core.$strip>;
95
96
  };
96
97
  };
98
+ attempt: {
99
+ get: {
100
+ readonly annotationJustifications: {
101
+ readonly destructiveHint: "Does not retry, cancel or alter the run attempt.";
102
+ readonly openWorldHint: "Reads recorded QA Wolf artifacts without changing the application under test.";
103
+ readonly readOnlyHint: "Retrieves a finished attempt's metadata and signed artifact URLs.";
104
+ };
105
+ readonly annotations: {
106
+ readonly destructiveHint: false;
107
+ readonly openWorldHint: false;
108
+ readonly readOnlyHint: true;
109
+ };
110
+ 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.";
111
+ readonly input: z.ZodObject<{
112
+ attemptId: PublicIdSchema;
113
+ }, z.core.$strip>;
114
+ readonly kind: "read";
115
+ readonly name: "attempt.get";
116
+ readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
117
+ flowId: FlowId;
118
+ flowStatus: z.ZodEnum<{
119
+ failed: "failed";
120
+ queued: "queued";
121
+ running: "running";
122
+ passed: "passed";
123
+ canceled: "canceled";
124
+ }>;
125
+ retryContext: z.ZodObject<{
126
+ currentOrdinal: z.ZodNumber;
127
+ next: z.ZodOptional<z.ZodObject<{
128
+ attemptId: PublicIdSchema;
129
+ status: z.ZodEnum<{
130
+ failed: "failed";
131
+ passed: "passed";
132
+ canceled: "canceled";
133
+ skipped: "skipped";
134
+ aborted: "aborted";
135
+ }>;
136
+ }, z.core.$strip>>;
137
+ previous: z.ZodOptional<z.ZodObject<{
138
+ attemptId: PublicIdSchema;
139
+ status: z.ZodEnum<{
140
+ failed: "failed";
141
+ passed: "passed";
142
+ canceled: "canceled";
143
+ skipped: "skipped";
144
+ aborted: "aborted";
145
+ }>;
146
+ }, z.core.$strip>>;
147
+ total: z.ZodNumber;
148
+ }, z.core.$strip>;
149
+ runId: RunId;
150
+ runStatus: z.ZodEnum<{
151
+ failed: "failed";
152
+ queued: "queued";
153
+ running: "running";
154
+ passed: "passed";
155
+ canceled: "canceled";
156
+ superseded: "superseded";
157
+ }>;
158
+ artifacts: z.ZodObject<{
159
+ logsUrl: z.ZodOptional<z.ZodURL>;
160
+ traceUrl: z.ZodOptional<z.ZodURL>;
161
+ videoUrl: z.ZodOptional<z.ZodURL>;
162
+ }, z.core.$strip>;
163
+ artifactStatus: z.ZodLiteral<"signed">;
164
+ attempt: z.ZodObject<{
165
+ attemptId: PublicIdSchema;
166
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
167
+ createdAt: z.ZodISODateTime;
168
+ error: z.ZodOptional<z.ZodString>;
169
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
170
+ kind: z.ZodLiteral<"automated">;
171
+ status: z.ZodEnum<{
172
+ failed: "failed";
173
+ passed: "passed";
174
+ canceled: "canceled";
175
+ skipped: "skipped";
176
+ aborted: "aborted";
177
+ }>;
178
+ }, z.core.$strip>;
179
+ }, z.core.$strip>, z.ZodObject<{
180
+ flowId: FlowId;
181
+ flowStatus: z.ZodEnum<{
182
+ failed: "failed";
183
+ queued: "queued";
184
+ running: "running";
185
+ passed: "passed";
186
+ canceled: "canceled";
187
+ }>;
188
+ retryContext: z.ZodObject<{
189
+ currentOrdinal: z.ZodNumber;
190
+ next: z.ZodOptional<z.ZodObject<{
191
+ attemptId: PublicIdSchema;
192
+ status: z.ZodEnum<{
193
+ failed: "failed";
194
+ passed: "passed";
195
+ canceled: "canceled";
196
+ skipped: "skipped";
197
+ aborted: "aborted";
198
+ }>;
199
+ }, z.core.$strip>>;
200
+ previous: z.ZodOptional<z.ZodObject<{
201
+ attemptId: PublicIdSchema;
202
+ status: z.ZodEnum<{
203
+ failed: "failed";
204
+ passed: "passed";
205
+ canceled: "canceled";
206
+ skipped: "skipped";
207
+ aborted: "aborted";
208
+ }>;
209
+ }, z.core.$strip>>;
210
+ total: z.ZodNumber;
211
+ }, z.core.$strip>;
212
+ runId: RunId;
213
+ runStatus: z.ZodEnum<{
214
+ failed: "failed";
215
+ queued: "queued";
216
+ running: "running";
217
+ passed: "passed";
218
+ canceled: "canceled";
219
+ superseded: "superseded";
220
+ }>;
221
+ artifacts: z.ZodObject<{}, z.core.$strict>;
222
+ artifactStatus: z.ZodLiteral<"signing-failed">;
223
+ attempt: z.ZodObject<{
224
+ attemptId: PublicIdSchema;
225
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
226
+ createdAt: z.ZodISODateTime;
227
+ error: z.ZodOptional<z.ZodString>;
228
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
229
+ kind: z.ZodLiteral<"automated">;
230
+ status: z.ZodEnum<{
231
+ failed: "failed";
232
+ passed: "passed";
233
+ canceled: "canceled";
234
+ skipped: "skipped";
235
+ aborted: "aborted";
236
+ }>;
237
+ }, z.core.$strip>;
238
+ }, z.core.$strip>, z.ZodObject<{
239
+ flowId: FlowId;
240
+ flowStatus: z.ZodEnum<{
241
+ failed: "failed";
242
+ queued: "queued";
243
+ running: "running";
244
+ passed: "passed";
245
+ canceled: "canceled";
246
+ }>;
247
+ retryContext: z.ZodObject<{
248
+ currentOrdinal: z.ZodNumber;
249
+ next: z.ZodOptional<z.ZodObject<{
250
+ attemptId: PublicIdSchema;
251
+ status: z.ZodEnum<{
252
+ failed: "failed";
253
+ passed: "passed";
254
+ canceled: "canceled";
255
+ skipped: "skipped";
256
+ aborted: "aborted";
257
+ }>;
258
+ }, z.core.$strip>>;
259
+ previous: z.ZodOptional<z.ZodObject<{
260
+ attemptId: PublicIdSchema;
261
+ status: z.ZodEnum<{
262
+ failed: "failed";
263
+ passed: "passed";
264
+ canceled: "canceled";
265
+ skipped: "skipped";
266
+ aborted: "aborted";
267
+ }>;
268
+ }, z.core.$strip>>;
269
+ total: z.ZodNumber;
270
+ }, z.core.$strip>;
271
+ runId: RunId;
272
+ runStatus: z.ZodEnum<{
273
+ failed: "failed";
274
+ queued: "queued";
275
+ running: "running";
276
+ passed: "passed";
277
+ canceled: "canceled";
278
+ superseded: "superseded";
279
+ }>;
280
+ artifacts: z.ZodObject<{}, z.core.$strict>;
281
+ artifactStatus: z.ZodLiteral<"not-captured">;
282
+ attempt: z.ZodObject<{
283
+ attemptId: PublicIdSchema;
284
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
285
+ createdAt: z.ZodISODateTime;
286
+ error: z.ZodOptional<z.ZodString>;
287
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
288
+ kind: z.ZodLiteral<"manual">;
289
+ status: z.ZodLiteral<"passed">;
290
+ }, z.core.$strip>;
291
+ }, z.core.$strip>], "artifactStatus">;
292
+ };
293
+ };
97
294
  codeHostIntegration: {
98
295
  find: {
99
296
  readonly annotationJustifications: {
@@ -690,6 +887,53 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
690
887
  name: z.ZodString;
691
888
  }, z.core.$strip>;
692
889
  };
890
+ discard: {
891
+ readonly annotationJustifications: {
892
+ readonly destructiveHint: "Terminates the environment for good: its runs are canceled and its flow changes are never promoted.";
893
+ readonly openWorldHint: "Changes QA Wolf environments only, not the customer's own repository or deployments.";
894
+ readonly readOnlyHint: "Terminates an environment and returns it terminated.";
895
+ };
896
+ readonly annotations: {
897
+ readonly destructiveHint: true;
898
+ readonly openWorldHint: false;
899
+ readonly readOnlyHint: false;
900
+ };
901
+ 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.";
902
+ readonly input: z.ZodObject<{
903
+ environmentId: PublicIdSchema;
904
+ workspaceId: z.ZodOptional<WorkspaceId>;
905
+ }, z.core.$strip>;
906
+ readonly kind: "write";
907
+ readonly name: "environment.discard";
908
+ readonly output: z.ZodObject<{
909
+ alias: z.ZodOptional<z.ZodString>;
910
+ flowCodeBranch: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
911
+ lastSyncedCommitHash: z.ZodString;
912
+ name: z.ZodString;
913
+ syncStatus: z.ZodLiteral<"reconciled">;
914
+ }, z.core.$strip>, z.ZodObject<{
915
+ name: z.ZodString;
916
+ syncStatus: z.ZodLiteral<"not-reconciled">;
917
+ }, z.core.$strip>], "syncStatus">>;
918
+ id: EnvironmentId;
919
+ isDefault: z.ZodBoolean;
920
+ kind: z.ZodEnum<{
921
+ static: "static";
922
+ preview: "preview";
923
+ }>;
924
+ name: z.ZodString;
925
+ runConcurrencyLimit: z.ZodString;
926
+ status: z.ZodEnum<{
927
+ running: "running";
928
+ blocked: "blocked";
929
+ "needs-investigation": "needs-investigation";
930
+ ready: "ready";
931
+ }>;
932
+ terminatedAt: z.ZodOptional<z.ZodISODateTime>;
933
+ variablesUrl: z.ZodOptional<z.ZodURL>;
934
+ url: z.ZodURL;
935
+ }, z.core.$strip>;
936
+ };
693
937
  find: {
694
938
  readonly annotationJustifications: {
695
939
  readonly destructiveHint: "Does not edit environments, variables or branches.";
@@ -843,34 +1087,76 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
843
1087
  variableNames: z.ZodArray<z.ZodString>;
844
1088
  }, z.core.$strip>;
845
1089
  };
846
- setVariable: {
1090
+ promote: {
847
1091
  readonly annotationJustifications: {
848
- readonly destructiveHint: "Can overwrite an existing variable value, while an unchanged value is skipped.";
849
- readonly openWorldHint: "Changes stored QA Wolf configuration rather than submitting forms or publishing content.";
850
- readonly readOnlyHint: "Creates or replaces a named environment variable without returning its value.";
1092
+ readonly destructiveHint: "Merges the environment's flow changes into its base and terminates the environment once they land.";
1093
+ readonly openWorldHint: "Changes QA Wolf flow code branches only, not the customer's own repository or deployments.";
1094
+ readonly readOnlyHint: "Records a promotion request that a background executor carries out.";
851
1095
  };
852
1096
  readonly annotations: {
853
1097
  readonly destructiveHint: true;
854
1098
  readonly openWorldHint: false;
855
1099
  readonly readOnlyHint: false;
856
1100
  };
857
- readonly description: "Create or replace an environment variable. If the user asks to create one for \"my email\" without naming it, use DEFAULT_EMAIL. The value is never returned.";
1101
+ 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.";
858
1102
  readonly input: z.ZodObject<{
859
1103
  environmentId: PublicIdSchema;
860
- name: z.ZodString;
861
- value: z.ZodString;
862
1104
  workspaceId: z.ZodOptional<WorkspaceId>;
863
1105
  }, z.core.$strip>;
864
1106
  readonly kind: "write";
865
- readonly name: "environment.setVariable";
1107
+ readonly name: "environment.promote";
866
1108
  readonly output: z.ZodObject<{
867
- name: z.ZodString;
1109
+ aiTaskId: z.ZodOptional<AiTaskId>;
1110
+ baseEnvironmentId: EnvironmentId;
1111
+ conflict: z.ZodOptional<z.ZodObject<{
1112
+ paths: z.ZodArray<z.ZodString>;
1113
+ sourceCommitHash: z.ZodString;
1114
+ targetCommitHash: z.ZodString;
1115
+ }, z.core.$strip>>;
1116
+ createdAt: z.ZodISODateTime;
1117
+ headEnvironmentId: EnvironmentId;
1118
+ id: PromotionId;
1119
+ promotedCommitHash: z.ZodOptional<z.ZodString>;
1120
+ settledAt: z.ZodOptional<z.ZodISODateTime>;
1121
+ status: z.ZodEnum<{
1122
+ pending: "pending";
1123
+ conflicted: "conflicted";
1124
+ resolving: "resolving";
1125
+ promoted: "promoted";
1126
+ "no-changes": "no-changes";
1127
+ abandoned: "abandoned";
1128
+ }>;
1129
+ url: z.ZodURL;
868
1130
  }, z.core.$strip>;
869
1131
  };
870
- update: {
1132
+ setVariable: {
871
1133
  readonly annotationJustifications: {
872
- readonly destructiveHint: "Can overwrite existing environment settings and affect future run capacity.";
873
- readonly openWorldHint: "Changes private environment settings without publishing code or contacting application users.";
1134
+ readonly destructiveHint: "Can overwrite an existing variable value, while an unchanged value is skipped.";
1135
+ readonly openWorldHint: "Changes stored QA Wolf configuration rather than submitting forms or publishing content.";
1136
+ readonly readOnlyHint: "Creates or replaces a named environment variable without returning its value.";
1137
+ };
1138
+ readonly annotations: {
1139
+ readonly destructiveHint: true;
1140
+ readonly openWorldHint: false;
1141
+ readonly readOnlyHint: false;
1142
+ };
1143
+ readonly description: "Create or replace an environment variable. If the user asks to create one for \"my email\" without naming it, use DEFAULT_EMAIL. The value is never returned.";
1144
+ readonly input: z.ZodObject<{
1145
+ environmentId: PublicIdSchema;
1146
+ name: z.ZodString;
1147
+ value: z.ZodString;
1148
+ workspaceId: z.ZodOptional<WorkspaceId>;
1149
+ }, z.core.$strip>;
1150
+ readonly kind: "write";
1151
+ readonly name: "environment.setVariable";
1152
+ readonly output: z.ZodObject<{
1153
+ name: z.ZodString;
1154
+ }, z.core.$strip>;
1155
+ };
1156
+ update: {
1157
+ readonly annotationJustifications: {
1158
+ readonly destructiveHint: "Can overwrite existing environment settings and affect future run capacity.";
1159
+ readonly openWorldHint: "Changes private environment settings without publishing code or contacting application users.";
874
1160
  readonly readOnlyHint: "Updates an environment's name or run concurrency limit.";
875
1161
  };
876
1162
  readonly annotations: {
@@ -1176,6 +1462,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1176
1462
  answer: z.ZodOptional<z.ZodString>;
1177
1463
  at: z.ZodISODateTime;
1178
1464
  reason: z.ZodOptional<z.ZodString>;
1465
+ text: z.ZodOptional<z.ZodString>;
1179
1466
  type: z.ZodString;
1180
1467
  }, z.core.$strip>>;
1181
1468
  state: z.ZodString;
@@ -1247,8 +1534,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1247
1534
  lastReproducedInRunId: RunId;
1248
1535
  }, z.core.$strip>>;
1249
1536
  status: z.ZodEnum<{
1250
- canceled: "canceled";
1251
1537
  pending: "pending";
1538
+ canceled: "canceled";
1252
1539
  backlog: "backlog";
1253
1540
  inProgress: "inProgress";
1254
1541
  paused: "paused";
@@ -1351,8 +1638,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1351
1638
  lastReproducedInRunId: RunId;
1352
1639
  }, z.core.$strip>>;
1353
1640
  status: z.ZodEnum<{
1354
- canceled: "canceled";
1355
1641
  pending: "pending";
1642
+ canceled: "canceled";
1356
1643
  backlog: "backlog";
1357
1644
  inProgress: "inProgress";
1358
1645
  paused: "paused";
@@ -1382,8 +1669,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1382
1669
  readonly description: "List the team's bug reports, maintenance reports, or coverage requests, newest first.";
1383
1670
  readonly input: z.ZodObject<{
1384
1671
  statuses: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1385
- canceled: "canceled";
1386
1672
  pending: "pending";
1673
+ canceled: "canceled";
1387
1674
  backlog: "backlog";
1388
1675
  inProgress: "inProgress";
1389
1676
  paused: "paused";
@@ -1424,8 +1711,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1424
1711
  lastReproducedInRunId: RunId;
1425
1712
  }, z.core.$strip>>;
1426
1713
  status: z.ZodEnum<{
1427
- canceled: "canceled";
1428
1714
  pending: "pending";
1715
+ canceled: "canceled";
1429
1716
  backlog: "backlog";
1430
1717
  inProgress: "inProgress";
1431
1718
  paused: "paused";
@@ -1482,8 +1769,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1482
1769
  lastReproducedInRunId: RunId;
1483
1770
  }, z.core.$strip>>;
1484
1771
  status: z.ZodEnum<{
1485
- canceled: "canceled";
1486
1772
  pending: "pending";
1773
+ canceled: "canceled";
1487
1774
  backlog: "backlog";
1488
1775
  inProgress: "inProgress";
1489
1776
  paused: "paused";
@@ -1541,8 +1828,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1541
1828
  lastReproducedInRunId: RunId;
1542
1829
  }, z.core.$strip>>;
1543
1830
  status: z.ZodEnum<{
1544
- canceled: "canceled";
1545
1831
  pending: "pending";
1832
+ canceled: "canceled";
1546
1833
  backlog: "backlog";
1547
1834
  inProgress: "inProgress";
1548
1835
  paused: "paused";
@@ -1582,8 +1869,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1582
1869
  urgent: "urgent";
1583
1870
  }>>;
1584
1871
  status: z.ZodOptional<z.ZodEnum<{
1585
- canceled: "canceled";
1586
1872
  pending: "pending";
1873
+ canceled: "canceled";
1587
1874
  backlog: "backlog";
1588
1875
  inProgress: "inProgress";
1589
1876
  paused: "paused";
@@ -1616,8 +1903,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1616
1903
  lastReproducedInRunId: RunId;
1617
1904
  }, z.core.$strip>>;
1618
1905
  status: z.ZodEnum<{
1619
- canceled: "canceled";
1620
1906
  pending: "pending";
1907
+ canceled: "canceled";
1621
1908
  backlog: "backlog";
1622
1909
  inProgress: "inProgress";
1623
1910
  paused: "paused";
@@ -1771,6 +2058,149 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1771
2058
  }, z.core.$strip>;
1772
2059
  };
1773
2060
  };
2061
+ promotion: {
2062
+ find: {
2063
+ readonly annotationJustifications: {
2064
+ readonly destructiveHint: "Does not change promotions, environments or flow code branches.";
2065
+ readonly openWorldHint: "Reads private QA Wolf promotion records without changing external systems.";
2066
+ readonly readOnlyHint: "Lists promotions in the authorized workspace without changing them.";
2067
+ };
2068
+ readonly annotations: {
2069
+ readonly destructiveHint: false;
2070
+ readonly openWorldHint: false;
2071
+ readonly readOnlyHint: true;
2072
+ };
2073
+ 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.";
2074
+ readonly input: z.ZodObject<{
2075
+ cursor: z.ZodOptional<z.ZodString>;
2076
+ limit: z.ZodDefault<z.ZodNumber>;
2077
+ environmentId: z.ZodOptional<PublicIdSchema>;
2078
+ status: z.ZodOptional<z.ZodEnum<{
2079
+ pending: "pending";
2080
+ conflicted: "conflicted";
2081
+ resolving: "resolving";
2082
+ promoted: "promoted";
2083
+ "no-changes": "no-changes";
2084
+ abandoned: "abandoned";
2085
+ }>>;
2086
+ workspaceId: z.ZodOptional<WorkspaceId>;
2087
+ }, z.core.$strip>;
2088
+ readonly kind: "read";
2089
+ readonly name: "promotion.find";
2090
+ readonly output: z.ZodObject<{
2091
+ nextCursor: z.ZodOptional<z.ZodString>;
2092
+ promotions: z.ZodArray<z.ZodObject<{
2093
+ aiTaskId: z.ZodOptional<AiTaskId>;
2094
+ baseEnvironmentId: EnvironmentId;
2095
+ conflict: z.ZodOptional<z.ZodObject<{
2096
+ paths: z.ZodArray<z.ZodString>;
2097
+ sourceCommitHash: z.ZodString;
2098
+ targetCommitHash: z.ZodString;
2099
+ }, z.core.$strip>>;
2100
+ createdAt: z.ZodISODateTime;
2101
+ headEnvironmentId: EnvironmentId;
2102
+ id: PromotionId;
2103
+ promotedCommitHash: z.ZodOptional<z.ZodString>;
2104
+ settledAt: z.ZodOptional<z.ZodISODateTime>;
2105
+ status: z.ZodEnum<{
2106
+ pending: "pending";
2107
+ conflicted: "conflicted";
2108
+ resolving: "resolving";
2109
+ promoted: "promoted";
2110
+ "no-changes": "no-changes";
2111
+ abandoned: "abandoned";
2112
+ }>;
2113
+ url: z.ZodURL;
2114
+ }, z.core.$strip>>;
2115
+ }, z.core.$strip>;
2116
+ };
2117
+ get: {
2118
+ readonly annotationJustifications: {
2119
+ readonly destructiveHint: "Does not change the promotion, its environments or flow code branches.";
2120
+ readonly openWorldHint: "Reads a private QA Wolf promotion record without changing external systems.";
2121
+ readonly readOnlyHint: "Retrieves one authorized promotion's status and conflict without changing it.";
2122
+ };
2123
+ readonly annotations: {
2124
+ readonly destructiveHint: false;
2125
+ readonly openWorldHint: false;
2126
+ readonly readOnlyHint: true;
2127
+ };
2128
+ 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.";
2129
+ readonly input: z.ZodObject<{
2130
+ promotionId: PromotionId;
2131
+ }, z.core.$strip>;
2132
+ readonly kind: "read";
2133
+ readonly name: "promotion.get";
2134
+ readonly output: z.ZodObject<{
2135
+ aiTaskId: z.ZodOptional<AiTaskId>;
2136
+ baseEnvironmentId: EnvironmentId;
2137
+ conflict: z.ZodOptional<z.ZodObject<{
2138
+ paths: z.ZodArray<z.ZodString>;
2139
+ sourceCommitHash: z.ZodString;
2140
+ targetCommitHash: z.ZodString;
2141
+ }, z.core.$strip>>;
2142
+ createdAt: z.ZodISODateTime;
2143
+ headEnvironmentId: EnvironmentId;
2144
+ id: PromotionId;
2145
+ promotedCommitHash: z.ZodOptional<z.ZodString>;
2146
+ settledAt: z.ZodOptional<z.ZodISODateTime>;
2147
+ status: z.ZodEnum<{
2148
+ pending: "pending";
2149
+ conflicted: "conflicted";
2150
+ resolving: "resolving";
2151
+ promoted: "promoted";
2152
+ "no-changes": "no-changes";
2153
+ abandoned: "abandoned";
2154
+ }>;
2155
+ url: z.ZodURL;
2156
+ }, z.core.$strip>;
2157
+ };
2158
+ resolve: {
2159
+ readonly annotationJustifications: {
2160
+ readonly destructiveHint: "Lands the resolved files on the base environment's flow code branch and terminates the head environment once they land.";
2161
+ readonly openWorldHint: "Changes QA Wolf flow code branches only, not the customer's own repository or deployments.";
2162
+ readonly readOnlyHint: "Records a resolution that a background executor applies to the base branch.";
2163
+ };
2164
+ readonly annotations: {
2165
+ readonly destructiveHint: true;
2166
+ readonly openWorldHint: false;
2167
+ readonly readOnlyHint: false;
2168
+ };
2169
+ readonly description: "Submit the resolution of a conflicted promotion: the full resolved contents of every conflicting path to keep, and every conflicting path to delete. Together they must cover exactly the paths in the promotion's conflict, and both commit hashes must match the conflict's; if a branch moved since, the call is refused as stale-conflict and promotion.get has the current conflict. Returns the promotion in resolving; poll promotion.get until it is promoted, or conflicted again if the branches moved while it applied.";
2170
+ readonly input: z.ZodObject<{
2171
+ deletes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2172
+ expectedSourceCommitHash: z.ZodString;
2173
+ expectedTargetCommitHash: z.ZodString;
2174
+ promotionId: PromotionId;
2175
+ writes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2176
+ }, z.core.$strip>;
2177
+ readonly kind: "write";
2178
+ readonly name: "promotion.resolve";
2179
+ readonly output: z.ZodObject<{
2180
+ aiTaskId: z.ZodOptional<AiTaskId>;
2181
+ baseEnvironmentId: EnvironmentId;
2182
+ conflict: z.ZodOptional<z.ZodObject<{
2183
+ paths: z.ZodArray<z.ZodString>;
2184
+ sourceCommitHash: z.ZodString;
2185
+ targetCommitHash: z.ZodString;
2186
+ }, z.core.$strip>>;
2187
+ createdAt: z.ZodISODateTime;
2188
+ headEnvironmentId: EnvironmentId;
2189
+ id: PromotionId;
2190
+ promotedCommitHash: z.ZodOptional<z.ZodString>;
2191
+ settledAt: z.ZodOptional<z.ZodISODateTime>;
2192
+ status: z.ZodEnum<{
2193
+ pending: "pending";
2194
+ conflicted: "conflicted";
2195
+ resolving: "resolving";
2196
+ promoted: "promoted";
2197
+ "no-changes": "no-changes";
2198
+ abandoned: "abandoned";
2199
+ }>;
2200
+ url: z.ZodURL;
2201
+ }, z.core.$strip>;
2202
+ };
2203
+ };
1774
2204
  run: {
1775
2205
  acceptScreenshotBaseline: {
1776
2206
  readonly annotationJustifications: {
@@ -1892,8 +2322,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1892
2322
  lastReproducedInRunId: RunId;
1893
2323
  }, z.core.$strip>>;
1894
2324
  status: z.ZodEnum<{
1895
- canceled: "canceled";
1896
2325
  pending: "pending";
2326
+ canceled: "canceled";
1897
2327
  backlog: "backlog";
1898
2328
  inProgress: "inProgress";
1899
2329
  paused: "paused";
@@ -2061,225 +2491,37 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2061
2491
  }, z.core.$strip>, z.ZodObject<{
2062
2492
  attemptId: z.ZodOptional<PublicIdSchema>;
2063
2493
  canceledReason: z.ZodOptional<z.ZodString>;
2064
- completedAt: z.ZodOptional<z.ZodISODateTime>;
2065
- kind: z.ZodLiteral<"automated">;
2066
- startedAt: z.ZodOptional<z.ZodISODateTime>;
2067
- status: z.ZodLiteral<"canceled">;
2068
- }, z.core.$strip>], "status">, z.ZodObject<{
2069
- attemptId: z.ZodOptional<PublicIdSchema>;
2070
- completedAt: z.ZodISODateTime;
2071
- kind: z.ZodLiteral<"manual">;
2072
- startedAt: z.ZodISODateTime;
2073
- status: z.ZodLiteral<"passed">;
2074
- }, z.core.$strip>]>>>;
2075
- flowId: FlowId;
2076
- name: z.ZodString;
2077
- status: z.ZodEnum<{
2078
- queued: "queued";
2079
- running: "running";
2080
- passed: "passed";
2081
- canceled: "canceled";
2082
- }>;
2083
- }, z.core.$strip>], "status">>;
2084
- runId: RunId;
2085
- completedAt: z.ZodOptional<z.ZodISODateTime>;
2086
- createdAt: z.ZodISODateTime;
2087
- git: z.ZodObject<{
2088
- branch: z.ZodOptional<z.ZodString>;
2089
- commitMessage: z.ZodOptional<z.ZodString>;
2090
- commitSha: z.ZodOptional<z.ZodString>;
2091
- commitUrl: z.ZodOptional<z.ZodString>;
2092
- }, z.core.$strip>;
2093
- needsReview: z.ZodOptional<z.ZodBoolean>;
2094
- status: z.ZodEnum<{
2095
- failed: "failed";
2096
- queued: "queued";
2097
- running: "running";
2098
- passed: "passed";
2099
- canceled: "canceled";
2100
- superseded: "superseded";
2101
- }>;
2102
- supersededBy: z.ZodOptional<z.ZodObject<{
2103
- runId: RunId;
2104
- url: z.ZodURL;
2105
- }, z.core.$strip>>;
2106
- url: z.ZodURL;
2107
- }, z.core.$strip>;
2108
- };
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">;
2494
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
2495
+ kind: z.ZodLiteral<"automated">;
2496
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
2497
+ status: z.ZodLiteral<"canceled">;
2498
+ }, z.core.$strip>], "status">, z.ZodObject<{
2499
+ attemptId: z.ZodOptional<PublicIdSchema>;
2500
+ completedAt: z.ZodISODateTime;
2501
+ kind: z.ZodLiteral<"manual">;
2502
+ startedAt: z.ZodISODateTime;
2503
+ status: z.ZodLiteral<"passed">;
2504
+ }, z.core.$strip>]>>>;
2505
+ flowId: FlowId;
2506
+ name: z.ZodString;
2240
2507
  status: z.ZodEnum<{
2241
- failed: "failed";
2508
+ queued: "queued";
2509
+ running: "running";
2242
2510
  passed: "passed";
2243
2511
  canceled: "canceled";
2244
- skipped: "skipped";
2245
- aborted: "aborted";
2246
2512
  }>;
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>;
2513
+ }, z.core.$strip>], "status">>;
2281
2514
  runId: RunId;
2282
- runStatus: z.ZodEnum<{
2515
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
2516
+ createdAt: z.ZodISODateTime;
2517
+ git: z.ZodObject<{
2518
+ branch: z.ZodOptional<z.ZodString>;
2519
+ commitMessage: z.ZodOptional<z.ZodString>;
2520
+ commitSha: z.ZodOptional<z.ZodString>;
2521
+ commitUrl: z.ZodOptional<z.ZodString>;
2522
+ }, z.core.$strip>;
2523
+ needsReview: z.ZodOptional<z.ZodBoolean>;
2524
+ status: z.ZodEnum<{
2283
2525
  failed: "failed";
2284
2526
  queued: "queued";
2285
2527
  running: "running";
@@ -2287,18 +2529,12 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2287
2529
  canceled: "canceled";
2288
2530
  superseded: "superseded";
2289
2531
  }>;
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">;
2532
+ supersededBy: z.ZodOptional<z.ZodObject<{
2533
+ runId: RunId;
2534
+ url: z.ZodURL;
2535
+ }, z.core.$strip>>;
2536
+ url: z.ZodURL;
2537
+ }, z.core.$strip>;
2302
2538
  };
2303
2539
  listScreenshotComparisons: {
2304
2540
  readonly annotationJustifications: {
@@ -2400,6 +2636,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2400
2636
  readonly name: "run.reattempt";
2401
2637
  readonly output: z.ZodObject<{
2402
2638
  reattemptedFlowIds: z.ZodArray<FlowId>;
2639
+ reattemptedInRunIds: z.ZodArray<RunId>;
2403
2640
  runId: RunId;
2404
2641
  url: z.ZodURL;
2405
2642
  }, z.core.$strip>;
@@ -2563,7 +2800,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2563
2800
  readonly openWorldHint: false;
2564
2801
  readonly readOnlyHint: false;
2565
2802
  };
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.";
2803
+ 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
2804
  readonly input: z.ZodObject<{
2568
2805
  id: z.ZodString;
2569
2806
  workspaceId: z.ZodOptional<WorkspaceId>;
@@ -2644,8 +2881,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2644
2881
  endedAt: z.ZodISODateTime;
2645
2882
  id: z.ZodUUID;
2646
2883
  mode: z.ZodEnum<{
2647
- automatic: "automatic";
2648
2884
  manual: "manual";
2885
+ automatic: "automatic";
2649
2886
  }>;
2650
2887
  runIds: z.ZodArray<z.ZodString>;
2651
2888
  runnerId: z.ZodString;
@@ -2661,8 +2898,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2661
2898
  active: z.ZodOptional<z.ZodObject<{
2662
2899
  id: z.ZodUUID;
2663
2900
  mode: z.ZodEnum<{
2664
- automatic: "automatic";
2665
2901
  manual: "manual";
2902
+ automatic: "automatic";
2666
2903
  }>;
2667
2904
  startedAt: z.ZodISODateTime;
2668
2905
  }, z.core.$strip>>;
@@ -2713,8 +2950,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2713
2950
  endedAt: z.ZodISODateTime;
2714
2951
  id: z.ZodUUID;
2715
2952
  mode: z.ZodEnum<{
2716
- automatic: "automatic";
2717
2953
  manual: "manual";
2954
+ automatic: "automatic";
2718
2955
  }>;
2719
2956
  runIds: z.ZodArray<z.ZodString>;
2720
2957
  runnerId: z.ZodString;
@@ -2755,8 +2992,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2755
2992
  errorMessage: z.ZodOptional<z.ZodString>;
2756
2993
  outcome: z.ZodLiteral<"success">;
2757
2994
  result: z.ZodEnum<{
2758
- success: "success";
2759
2995
  error: "error";
2996
+ success: "success";
2760
2997
  stopped: "stopped";
2761
2998
  }>;
2762
2999
  }, z.core.$strip>, z.ZodObject<{
@@ -2917,7 +3154,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2917
3154
  readonly openWorldHint: false;
2918
3155
  readonly readOnlyHint: true;
2919
3156
  };
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.";
3157
+ 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
3158
  readonly input: z.ZodObject<{
2922
3159
  id: z.ZodString;
2923
3160
  request: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -3216,7 +3453,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3216
3453
  readonly openWorldHint: true;
3217
3454
  readonly readOnlyHint: false;
3218
3455
  };
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.";
3456
+ 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
3457
  readonly input: z.ZodObject<{
3221
3458
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
3222
3459
  button: z.ZodLiteral<"left" | "right" | "wheel" | "back" | "forward">;
@@ -3320,7 +3557,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3320
3557
  readonly openWorldHint: true;
3321
3558
  readonly readOnlyHint: false;
3322
3559
  };
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.";
3560
+ 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
3561
  readonly input: z.ZodObject<{
3325
3562
  actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3326
3563
  button: z.ZodLiteral<"left" | "right" | "wheel" | "back" | "forward">;
@@ -4384,51 +4621,247 @@ export declare const publicContractsV1: {
4384
4621
  "waiting-for-you": "waiting-for-you";
4385
4622
  completed: "completed";
4386
4623
  failed: "failed";
4387
- cancelled: "cancelled";
4624
+ cancelled: "cancelled";
4625
+ }>;
4626
+ waitSeconds: z.ZodOptional<z.ZodNumber>;
4627
+ wokeOn: z.ZodOptional<z.ZodEnum<{
4628
+ status: "status";
4629
+ reply: "reply";
4630
+ timeout: "timeout";
4631
+ }>>;
4632
+ url: z.ZodURL;
4633
+ }, z.core.$strip>;
4634
+ };
4635
+ send: {
4636
+ readonly annotationJustifications: {
4637
+ readonly destructiveHint: "Delegated execution can overwrite test code or change and delete application data.";
4638
+ readonly openWorldHint: "Delegated work can submit application actions and publish code to connected repositories.";
4639
+ readonly readOnlyHint: "Creates or continues AI work that can implement, run and publish tests.";
4640
+ };
4641
+ readonly annotations: {
4642
+ readonly destructiveHint: true;
4643
+ readonly openWorldHint: true;
4644
+ readonly readOnlyHint: false;
4645
+ };
4646
+ readonly description: "Start or continue work with the QA Wolf AI and return a live session URL to share with the user. Use it to cover a user journey, investigate a failing run, or fix a broken flow. This is the one verb that starts work from nothing: every other write acts on a flow, run or issue that already exists. Returns sessionId, status, and url as soon as the request is accepted; work can take minutes to tens of minutes. After each send, put the exact returned url in a normal user-visible assistant message, and repeat it in the last message of the turn: only a turn's trailing message is shown expanded. Tool output and internal reasoning do not count as sharing the link. Do not run a timer or monitoring call alongside this send. Acceptance does not mean the work is complete. Then monitor the session with agent.get, reporting new progress, blockers, and the final outcome rather than unchanged status. Send here again to answer a question or add context to the same session.";
4647
+ readonly input: z.ZodObject<{
4648
+ environmentId: z.ZodOptional<PublicIdSchema>;
4649
+ filePaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
4650
+ message: z.ZodString;
4651
+ parentSessionId: z.ZodOptional<PublicIdSchema>;
4652
+ runnerId: z.ZodOptional<z.ZodString>;
4653
+ sessionId: z.ZodOptional<PublicIdSchema>;
4654
+ workspaceId: z.ZodOptional<PublicIdSchema>;
4655
+ }, z.core.$strip>;
4656
+ readonly kind: "write";
4657
+ readonly name: "agent.send";
4658
+ readonly output: z.ZodObject<{
4659
+ sessionId: PublicIdSchema;
4660
+ status: z.ZodEnum<{
4661
+ working: "working";
4662
+ "waiting-for-you": "waiting-for-you";
4663
+ completed: "completed";
4664
+ failed: "failed";
4665
+ cancelled: "cancelled";
4666
+ }>;
4667
+ url: z.ZodURL;
4668
+ }, z.core.$strip>;
4669
+ };
4670
+ };
4671
+ attempt: {
4672
+ get: {
4673
+ readonly annotationJustifications: {
4674
+ readonly destructiveHint: "Does not retry, cancel or alter the run attempt.";
4675
+ readonly openWorldHint: "Reads recorded QA Wolf artifacts without changing the application under test.";
4676
+ readonly readOnlyHint: "Retrieves a finished attempt's metadata and signed artifact URLs.";
4677
+ };
4678
+ readonly annotations: {
4679
+ readonly destructiveHint: false;
4680
+ readonly openWorldHint: false;
4681
+ readonly readOnlyHint: true;
4682
+ };
4683
+ 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.";
4684
+ readonly input: z.ZodObject<{
4685
+ attemptId: PublicIdSchema;
4686
+ }, z.core.$strip>;
4687
+ readonly kind: "read";
4688
+ readonly name: "attempt.get";
4689
+ readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
4690
+ flowId: PublicIdSchema;
4691
+ flowStatus: z.ZodEnum<{
4692
+ failed: "failed";
4693
+ queued: "queued";
4694
+ running: "running";
4695
+ passed: "passed";
4696
+ canceled: "canceled";
4697
+ }>;
4698
+ retryContext: z.ZodObject<{
4699
+ currentOrdinal: z.ZodNumber;
4700
+ next: z.ZodOptional<z.ZodObject<{
4701
+ attemptId: PublicIdSchema;
4702
+ status: z.ZodEnum<{
4703
+ failed: "failed";
4704
+ passed: "passed";
4705
+ canceled: "canceled";
4706
+ skipped: "skipped";
4707
+ aborted: "aborted";
4708
+ }>;
4709
+ }, z.core.$strip>>;
4710
+ previous: z.ZodOptional<z.ZodObject<{
4711
+ attemptId: PublicIdSchema;
4712
+ status: z.ZodEnum<{
4713
+ failed: "failed";
4714
+ passed: "passed";
4715
+ canceled: "canceled";
4716
+ skipped: "skipped";
4717
+ aborted: "aborted";
4718
+ }>;
4719
+ }, z.core.$strip>>;
4720
+ total: z.ZodNumber;
4721
+ }, z.core.$strip>;
4722
+ runId: PublicIdSchema;
4723
+ runStatus: z.ZodEnum<{
4724
+ failed: "failed";
4725
+ queued: "queued";
4726
+ running: "running";
4727
+ passed: "passed";
4728
+ canceled: "canceled";
4729
+ superseded: "superseded";
4730
+ }>;
4731
+ artifacts: z.ZodObject<{
4732
+ logsUrl: z.ZodOptional<z.ZodURL>;
4733
+ traceUrl: z.ZodOptional<z.ZodURL>;
4734
+ videoUrl: z.ZodOptional<z.ZodURL>;
4735
+ }, z.core.$strip>;
4736
+ artifactStatus: z.ZodLiteral<"signed">;
4737
+ attempt: z.ZodObject<{
4738
+ attemptId: PublicIdSchema;
4739
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
4740
+ createdAt: z.ZodISODateTime;
4741
+ error: z.ZodOptional<z.ZodString>;
4742
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
4743
+ kind: z.ZodLiteral<"automated">;
4744
+ status: z.ZodEnum<{
4745
+ failed: "failed";
4746
+ passed: "passed";
4747
+ canceled: "canceled";
4748
+ skipped: "skipped";
4749
+ aborted: "aborted";
4750
+ }>;
4751
+ }, z.core.$strip>;
4752
+ }, z.core.$strip>, z.ZodObject<{
4753
+ flowId: PublicIdSchema;
4754
+ flowStatus: z.ZodEnum<{
4755
+ failed: "failed";
4756
+ queued: "queued";
4757
+ running: "running";
4758
+ passed: "passed";
4759
+ canceled: "canceled";
4760
+ }>;
4761
+ retryContext: z.ZodObject<{
4762
+ currentOrdinal: z.ZodNumber;
4763
+ next: z.ZodOptional<z.ZodObject<{
4764
+ attemptId: PublicIdSchema;
4765
+ status: z.ZodEnum<{
4766
+ failed: "failed";
4767
+ passed: "passed";
4768
+ canceled: "canceled";
4769
+ skipped: "skipped";
4770
+ aborted: "aborted";
4771
+ }>;
4772
+ }, z.core.$strip>>;
4773
+ previous: z.ZodOptional<z.ZodObject<{
4774
+ attemptId: PublicIdSchema;
4775
+ status: z.ZodEnum<{
4776
+ failed: "failed";
4777
+ passed: "passed";
4778
+ canceled: "canceled";
4779
+ skipped: "skipped";
4780
+ aborted: "aborted";
4781
+ }>;
4782
+ }, z.core.$strip>>;
4783
+ total: z.ZodNumber;
4784
+ }, z.core.$strip>;
4785
+ runId: PublicIdSchema;
4786
+ runStatus: z.ZodEnum<{
4787
+ failed: "failed";
4788
+ queued: "queued";
4789
+ running: "running";
4790
+ passed: "passed";
4791
+ canceled: "canceled";
4792
+ superseded: "superseded";
4793
+ }>;
4794
+ artifacts: z.ZodObject<{}, z.core.$strict>;
4795
+ artifactStatus: z.ZodLiteral<"signing-failed">;
4796
+ attempt: z.ZodObject<{
4797
+ attemptId: PublicIdSchema;
4798
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
4799
+ createdAt: z.ZodISODateTime;
4800
+ error: z.ZodOptional<z.ZodString>;
4801
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
4802
+ kind: z.ZodLiteral<"automated">;
4803
+ status: z.ZodEnum<{
4804
+ failed: "failed";
4805
+ passed: "passed";
4806
+ canceled: "canceled";
4807
+ skipped: "skipped";
4808
+ aborted: "aborted";
4809
+ }>;
4810
+ }, z.core.$strip>;
4811
+ }, z.core.$strip>, z.ZodObject<{
4812
+ flowId: PublicIdSchema;
4813
+ flowStatus: z.ZodEnum<{
4814
+ failed: "failed";
4815
+ queued: "queued";
4816
+ running: "running";
4817
+ passed: "passed";
4818
+ canceled: "canceled";
4388
4819
  }>;
4389
- waitSeconds: z.ZodOptional<z.ZodNumber>;
4390
- wokeOn: z.ZodOptional<z.ZodEnum<{
4391
- reply: "reply";
4392
- status: "status";
4393
- timeout: "timeout";
4394
- }>>;
4395
- url: z.ZodURL;
4396
- }, z.core.$strip>;
4397
- };
4398
- send: {
4399
- readonly annotationJustifications: {
4400
- readonly destructiveHint: "Delegated execution can overwrite test code or change and delete application data.";
4401
- readonly openWorldHint: "Delegated work can submit application actions and publish code to connected repositories.";
4402
- readonly readOnlyHint: "Creates or continues AI work that can implement, run and publish tests.";
4403
- };
4404
- readonly annotations: {
4405
- readonly destructiveHint: true;
4406
- readonly openWorldHint: true;
4407
- readonly readOnlyHint: false;
4408
- };
4409
- readonly description: "Start or continue work with the QA Wolf AI and return a live session URL to share with the user. Use it to cover a user journey, investigate a failing run, or fix a broken flow. This is the one verb that starts work from nothing: every other write acts on a flow, run or issue that already exists. Returns sessionId, status, and url as soon as the request is accepted; work can take minutes to tens of minutes. After each send, put the exact returned url in a normal user-visible assistant message, and repeat it in the last message of the turn: only a turn's trailing message is shown expanded. Tool output and internal reasoning do not count as sharing the link. Do not run a timer or monitoring call alongside this send. Acceptance does not mean the work is complete. Then monitor the session with agent.get, reporting new progress, blockers, and the final outcome rather than unchanged status. Send here again to answer a question or add context to the same session.";
4410
- readonly input: z.ZodObject<{
4411
- environmentId: z.ZodOptional<PublicIdSchema>;
4412
- filePaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
4413
- message: z.ZodString;
4414
- parentSessionId: z.ZodOptional<PublicIdSchema>;
4415
- runnerId: z.ZodOptional<z.ZodString>;
4416
- sessionId: z.ZodOptional<PublicIdSchema>;
4417
- workspaceId: z.ZodOptional<PublicIdSchema>;
4418
- }, z.core.$strip>;
4419
- readonly kind: "write";
4420
- readonly name: "agent.send";
4421
- readonly output: z.ZodObject<{
4422
- sessionId: PublicIdSchema;
4423
- status: z.ZodEnum<{
4424
- working: "working";
4425
- "waiting-for-you": "waiting-for-you";
4426
- completed: "completed";
4820
+ retryContext: z.ZodObject<{
4821
+ currentOrdinal: z.ZodNumber;
4822
+ next: z.ZodOptional<z.ZodObject<{
4823
+ attemptId: PublicIdSchema;
4824
+ status: z.ZodEnum<{
4825
+ failed: "failed";
4826
+ passed: "passed";
4827
+ canceled: "canceled";
4828
+ skipped: "skipped";
4829
+ aborted: "aborted";
4830
+ }>;
4831
+ }, z.core.$strip>>;
4832
+ previous: z.ZodOptional<z.ZodObject<{
4833
+ attemptId: PublicIdSchema;
4834
+ status: z.ZodEnum<{
4835
+ failed: "failed";
4836
+ passed: "passed";
4837
+ canceled: "canceled";
4838
+ skipped: "skipped";
4839
+ aborted: "aborted";
4840
+ }>;
4841
+ }, z.core.$strip>>;
4842
+ total: z.ZodNumber;
4843
+ }, z.core.$strip>;
4844
+ runId: PublicIdSchema;
4845
+ runStatus: z.ZodEnum<{
4427
4846
  failed: "failed";
4428
- cancelled: "cancelled";
4847
+ queued: "queued";
4848
+ running: "running";
4849
+ passed: "passed";
4850
+ canceled: "canceled";
4851
+ superseded: "superseded";
4429
4852
  }>;
4430
- url: z.ZodURL;
4431
- }, z.core.$strip>;
4853
+ artifacts: z.ZodObject<{}, z.core.$strict>;
4854
+ artifactStatus: z.ZodLiteral<"not-captured">;
4855
+ attempt: z.ZodObject<{
4856
+ attemptId: PublicIdSchema;
4857
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
4858
+ createdAt: z.ZodISODateTime;
4859
+ error: z.ZodOptional<z.ZodString>;
4860
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
4861
+ kind: z.ZodLiteral<"manual">;
4862
+ status: z.ZodLiteral<"passed">;
4863
+ }, z.core.$strip>;
4864
+ }, z.core.$strip>], "artifactStatus">;
4432
4865
  };
4433
4866
  };
4434
4867
  codeHostIntegration: {
@@ -5027,6 +5460,53 @@ export declare const publicContractsV1: {
5027
5460
  name: z.ZodString;
5028
5461
  }, z.core.$strip>;
5029
5462
  };
5463
+ discard: {
5464
+ readonly annotationJustifications: {
5465
+ readonly destructiveHint: "Terminates the environment for good: its runs are canceled and its flow changes are never promoted.";
5466
+ readonly openWorldHint: "Changes QA Wolf environments only, not the customer's own repository or deployments.";
5467
+ readonly readOnlyHint: "Terminates an environment and returns it terminated.";
5468
+ };
5469
+ readonly annotations: {
5470
+ readonly destructiveHint: true;
5471
+ readonly openWorldHint: false;
5472
+ readonly readOnlyHint: false;
5473
+ };
5474
+ 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.";
5475
+ readonly input: z.ZodObject<{
5476
+ environmentId: PublicIdSchema;
5477
+ workspaceId: z.ZodOptional<PublicIdSchema>;
5478
+ }, z.core.$strip>;
5479
+ readonly kind: "write";
5480
+ readonly name: "environment.discard";
5481
+ readonly output: z.ZodObject<{
5482
+ alias: z.ZodOptional<z.ZodString>;
5483
+ flowCodeBranch: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5484
+ lastSyncedCommitHash: z.ZodString;
5485
+ name: z.ZodString;
5486
+ syncStatus: z.ZodLiteral<"reconciled">;
5487
+ }, z.core.$strip>, z.ZodObject<{
5488
+ name: z.ZodString;
5489
+ syncStatus: z.ZodLiteral<"not-reconciled">;
5490
+ }, z.core.$strip>], "syncStatus">>;
5491
+ id: PublicIdSchema;
5492
+ isDefault: z.ZodBoolean;
5493
+ kind: z.ZodEnum<{
5494
+ static: "static";
5495
+ preview: "preview";
5496
+ }>;
5497
+ name: z.ZodString;
5498
+ runConcurrencyLimit: z.ZodString;
5499
+ status: z.ZodEnum<{
5500
+ running: "running";
5501
+ blocked: "blocked";
5502
+ "needs-investigation": "needs-investigation";
5503
+ ready: "ready";
5504
+ }>;
5505
+ terminatedAt: z.ZodOptional<z.ZodISODateTime>;
5506
+ variablesUrl: z.ZodOptional<z.ZodURL>;
5507
+ url: z.ZodURL;
5508
+ }, z.core.$strip>;
5509
+ };
5030
5510
  find: {
5031
5511
  readonly annotationJustifications: {
5032
5512
  readonly destructiveHint: "Does not edit environments, variables or branches.";
@@ -5180,6 +5660,48 @@ export declare const publicContractsV1: {
5180
5660
  variableNames: z.ZodArray<z.ZodString>;
5181
5661
  }, z.core.$strip>;
5182
5662
  };
5663
+ promote: {
5664
+ readonly annotationJustifications: {
5665
+ readonly destructiveHint: "Merges the environment's flow changes into its base and terminates the environment once they land.";
5666
+ readonly openWorldHint: "Changes QA Wolf flow code branches only, not the customer's own repository or deployments.";
5667
+ readonly readOnlyHint: "Records a promotion request that a background executor carries out.";
5668
+ };
5669
+ readonly annotations: {
5670
+ readonly destructiveHint: true;
5671
+ readonly openWorldHint: false;
5672
+ readonly readOnlyHint: false;
5673
+ };
5674
+ 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.";
5675
+ readonly input: z.ZodObject<{
5676
+ environmentId: PublicIdSchema;
5677
+ workspaceId: z.ZodOptional<PublicIdSchema>;
5678
+ }, z.core.$strip>;
5679
+ readonly kind: "write";
5680
+ readonly name: "environment.promote";
5681
+ readonly output: z.ZodObject<{
5682
+ aiTaskId: z.ZodOptional<PublicIdSchema>;
5683
+ baseEnvironmentId: PublicIdSchema;
5684
+ conflict: z.ZodOptional<z.ZodObject<{
5685
+ paths: z.ZodArray<z.ZodString>;
5686
+ sourceCommitHash: z.ZodString;
5687
+ targetCommitHash: z.ZodString;
5688
+ }, z.core.$strip>>;
5689
+ createdAt: z.ZodISODateTime;
5690
+ headEnvironmentId: PublicIdSchema;
5691
+ id: PublicIdSchema;
5692
+ promotedCommitHash: z.ZodOptional<z.ZodString>;
5693
+ settledAt: z.ZodOptional<z.ZodISODateTime>;
5694
+ status: z.ZodEnum<{
5695
+ pending: "pending";
5696
+ conflicted: "conflicted";
5697
+ resolving: "resolving";
5698
+ promoted: "promoted";
5699
+ "no-changes": "no-changes";
5700
+ abandoned: "abandoned";
5701
+ }>;
5702
+ url: z.ZodURL;
5703
+ }, z.core.$strip>;
5704
+ };
5183
5705
  setVariable: {
5184
5706
  readonly annotationJustifications: {
5185
5707
  readonly destructiveHint: "Can overwrite an existing variable value, while an unchanged value is skipped.";
@@ -5513,6 +6035,7 @@ export declare const publicContractsV1: {
5513
6035
  answer: z.ZodOptional<z.ZodString>;
5514
6036
  at: z.ZodISODateTime;
5515
6037
  reason: z.ZodOptional<z.ZodString>;
6038
+ text: z.ZodOptional<z.ZodString>;
5516
6039
  type: z.ZodString;
5517
6040
  }, z.core.$strip>>;
5518
6041
  state: z.ZodString;
@@ -5584,8 +6107,8 @@ export declare const publicContractsV1: {
5584
6107
  lastReproducedInRunId: PublicIdSchema;
5585
6108
  }, z.core.$strip>>;
5586
6109
  status: z.ZodEnum<{
5587
- canceled: "canceled";
5588
6110
  pending: "pending";
6111
+ canceled: "canceled";
5589
6112
  backlog: "backlog";
5590
6113
  inProgress: "inProgress";
5591
6114
  paused: "paused";
@@ -5688,8 +6211,8 @@ export declare const publicContractsV1: {
5688
6211
  lastReproducedInRunId: PublicIdSchema;
5689
6212
  }, z.core.$strip>>;
5690
6213
  status: z.ZodEnum<{
5691
- canceled: "canceled";
5692
6214
  pending: "pending";
6215
+ canceled: "canceled";
5693
6216
  backlog: "backlog";
5694
6217
  inProgress: "inProgress";
5695
6218
  paused: "paused";
@@ -5719,8 +6242,8 @@ export declare const publicContractsV1: {
5719
6242
  readonly description: "List the team's bug reports, maintenance reports, or coverage requests, newest first.";
5720
6243
  readonly input: z.ZodObject<{
5721
6244
  statuses: z.ZodDefault<z.ZodArray<z.ZodEnum<{
5722
- canceled: "canceled";
5723
6245
  pending: "pending";
6246
+ canceled: "canceled";
5724
6247
  backlog: "backlog";
5725
6248
  inProgress: "inProgress";
5726
6249
  paused: "paused";
@@ -5761,8 +6284,8 @@ export declare const publicContractsV1: {
5761
6284
  lastReproducedInRunId: PublicIdSchema;
5762
6285
  }, z.core.$strip>>;
5763
6286
  status: z.ZodEnum<{
5764
- canceled: "canceled";
5765
6287
  pending: "pending";
6288
+ canceled: "canceled";
5766
6289
  backlog: "backlog";
5767
6290
  inProgress: "inProgress";
5768
6291
  paused: "paused";
@@ -5819,8 +6342,8 @@ export declare const publicContractsV1: {
5819
6342
  lastReproducedInRunId: PublicIdSchema;
5820
6343
  }, z.core.$strip>>;
5821
6344
  status: z.ZodEnum<{
5822
- canceled: "canceled";
5823
6345
  pending: "pending";
6346
+ canceled: "canceled";
5824
6347
  backlog: "backlog";
5825
6348
  inProgress: "inProgress";
5826
6349
  paused: "paused";
@@ -5878,8 +6401,8 @@ export declare const publicContractsV1: {
5878
6401
  lastReproducedInRunId: PublicIdSchema;
5879
6402
  }, z.core.$strip>>;
5880
6403
  status: z.ZodEnum<{
5881
- canceled: "canceled";
5882
6404
  pending: "pending";
6405
+ canceled: "canceled";
5883
6406
  backlog: "backlog";
5884
6407
  inProgress: "inProgress";
5885
6408
  paused: "paused";
@@ -5919,8 +6442,8 @@ export declare const publicContractsV1: {
5919
6442
  urgent: "urgent";
5920
6443
  }>>;
5921
6444
  status: z.ZodOptional<z.ZodEnum<{
5922
- canceled: "canceled";
5923
6445
  pending: "pending";
6446
+ canceled: "canceled";
5924
6447
  backlog: "backlog";
5925
6448
  inProgress: "inProgress";
5926
6449
  paused: "paused";
@@ -5953,8 +6476,8 @@ export declare const publicContractsV1: {
5953
6476
  lastReproducedInRunId: PublicIdSchema;
5954
6477
  }, z.core.$strip>>;
5955
6478
  status: z.ZodEnum<{
5956
- canceled: "canceled";
5957
6479
  pending: "pending";
6480
+ canceled: "canceled";
5958
6481
  backlog: "backlog";
5959
6482
  inProgress: "inProgress";
5960
6483
  paused: "paused";
@@ -6060,51 +6583,194 @@ export declare const publicContractsV1: {
6060
6583
  id: z.ZodString;
6061
6584
  name: z.ZodString;
6062
6585
  }, z.core.$strip>>;
6063
- }, z.core.$strip>]>>;
6586
+ }, z.core.$strip>]>>;
6587
+ }, z.core.$strip>;
6588
+ };
6589
+ pause: {
6590
+ readonly annotationJustifications: {
6591
+ readonly destructiveHint: "Disables future automatic execution for the legacy trigger and its pull request copies until it is resumed.";
6592
+ readonly openWorldHint: "Changes private QA Wolf scheduling state without starting external work.";
6593
+ readonly readOnlyHint: "Pauses an existing legacy trigger so it stops starting new work.";
6594
+ };
6595
+ readonly annotations: {
6596
+ readonly destructiveHint: true;
6597
+ readonly openWorldHint: false;
6598
+ readonly readOnlyHint: false;
6599
+ };
6600
+ readonly description: string;
6601
+ readonly input: z.ZodObject<{
6602
+ legacyTriggerId: PublicIdSchema;
6603
+ }, z.core.$strip>;
6604
+ readonly kind: "write";
6605
+ readonly name: "legacyTrigger.pause";
6606
+ readonly output: z.ZodObject<{
6607
+ isPaused: z.ZodBoolean;
6608
+ legacyTriggerId: PublicIdSchema;
6609
+ }, z.core.$strip>;
6610
+ };
6611
+ resume: {
6612
+ readonly annotationJustifications: {
6613
+ readonly destructiveHint: "Enables automatic test execution that can overwrite or delete application data.";
6614
+ readonly openWorldHint: "Resumed execution can change the application under test and update connected integrations.";
6615
+ readonly readOnlyHint: "Reactivates a legacy trigger and its pull request copies so future schedules or deployments can start runs.";
6616
+ };
6617
+ readonly annotations: {
6618
+ readonly destructiveHint: true;
6619
+ readonly openWorldHint: true;
6620
+ readonly readOnlyHint: false;
6621
+ };
6622
+ readonly description: string;
6623
+ readonly input: z.ZodObject<{
6624
+ legacyTriggerId: PublicIdSchema;
6625
+ }, z.core.$strip>;
6626
+ readonly kind: "write";
6627
+ readonly name: "legacyTrigger.resume";
6628
+ readonly output: z.ZodObject<{
6629
+ isPaused: z.ZodBoolean;
6630
+ legacyTriggerId: PublicIdSchema;
6631
+ }, z.core.$strip>;
6632
+ };
6633
+ };
6634
+ promotion: {
6635
+ find: {
6636
+ readonly annotationJustifications: {
6637
+ readonly destructiveHint: "Does not change promotions, environments or flow code branches.";
6638
+ readonly openWorldHint: "Reads private QA Wolf promotion records without changing external systems.";
6639
+ readonly readOnlyHint: "Lists promotions in the authorized workspace without changing them.";
6640
+ };
6641
+ readonly annotations: {
6642
+ readonly destructiveHint: false;
6643
+ readonly openWorldHint: false;
6644
+ readonly readOnlyHint: true;
6645
+ };
6646
+ 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.";
6647
+ readonly input: z.ZodObject<{
6648
+ cursor: z.ZodOptional<z.ZodString>;
6649
+ limit: z.ZodDefault<z.ZodNumber>;
6650
+ environmentId: z.ZodOptional<PublicIdSchema>;
6651
+ status: z.ZodOptional<z.ZodEnum<{
6652
+ pending: "pending";
6653
+ conflicted: "conflicted";
6654
+ resolving: "resolving";
6655
+ promoted: "promoted";
6656
+ "no-changes": "no-changes";
6657
+ abandoned: "abandoned";
6658
+ }>>;
6659
+ workspaceId: z.ZodOptional<PublicIdSchema>;
6660
+ }, z.core.$strip>;
6661
+ readonly kind: "read";
6662
+ readonly name: "promotion.find";
6663
+ readonly output: z.ZodObject<{
6664
+ nextCursor: z.ZodOptional<z.ZodString>;
6665
+ promotions: z.ZodArray<z.ZodObject<{
6666
+ aiTaskId: z.ZodOptional<PublicIdSchema>;
6667
+ baseEnvironmentId: PublicIdSchema;
6668
+ conflict: z.ZodOptional<z.ZodObject<{
6669
+ paths: z.ZodArray<z.ZodString>;
6670
+ sourceCommitHash: z.ZodString;
6671
+ targetCommitHash: z.ZodString;
6672
+ }, z.core.$strip>>;
6673
+ createdAt: z.ZodISODateTime;
6674
+ headEnvironmentId: PublicIdSchema;
6675
+ id: PublicIdSchema;
6676
+ promotedCommitHash: z.ZodOptional<z.ZodString>;
6677
+ settledAt: z.ZodOptional<z.ZodISODateTime>;
6678
+ status: z.ZodEnum<{
6679
+ pending: "pending";
6680
+ conflicted: "conflicted";
6681
+ resolving: "resolving";
6682
+ promoted: "promoted";
6683
+ "no-changes": "no-changes";
6684
+ abandoned: "abandoned";
6685
+ }>;
6686
+ url: z.ZodURL;
6687
+ }, z.core.$strip>>;
6064
6688
  }, z.core.$strip>;
6065
6689
  };
6066
- pause: {
6690
+ get: {
6067
6691
  readonly annotationJustifications: {
6068
- readonly destructiveHint: "Disables future automatic execution for the legacy trigger and its pull request copies until it is resumed.";
6069
- readonly openWorldHint: "Changes private QA Wolf scheduling state without starting external work.";
6070
- readonly readOnlyHint: "Pauses an existing legacy trigger so it stops starting new work.";
6692
+ readonly destructiveHint: "Does not change the promotion, its environments or flow code branches.";
6693
+ readonly openWorldHint: "Reads a private QA Wolf promotion record without changing external systems.";
6694
+ readonly readOnlyHint: "Retrieves one authorized promotion's status and conflict without changing it.";
6071
6695
  };
6072
6696
  readonly annotations: {
6073
- readonly destructiveHint: true;
6697
+ readonly destructiveHint: false;
6074
6698
  readonly openWorldHint: false;
6075
- readonly readOnlyHint: false;
6699
+ readonly readOnlyHint: true;
6076
6700
  };
6077
- readonly description: string;
6701
+ 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.";
6078
6702
  readonly input: z.ZodObject<{
6079
- legacyTriggerId: PublicIdSchema;
6703
+ promotionId: PublicIdSchema;
6080
6704
  }, z.core.$strip>;
6081
- readonly kind: "write";
6082
- readonly name: "legacyTrigger.pause";
6705
+ readonly kind: "read";
6706
+ readonly name: "promotion.get";
6083
6707
  readonly output: z.ZodObject<{
6084
- isPaused: z.ZodBoolean;
6085
- legacyTriggerId: PublicIdSchema;
6708
+ aiTaskId: z.ZodOptional<PublicIdSchema>;
6709
+ baseEnvironmentId: PublicIdSchema;
6710
+ conflict: z.ZodOptional<z.ZodObject<{
6711
+ paths: z.ZodArray<z.ZodString>;
6712
+ sourceCommitHash: z.ZodString;
6713
+ targetCommitHash: z.ZodString;
6714
+ }, z.core.$strip>>;
6715
+ createdAt: z.ZodISODateTime;
6716
+ headEnvironmentId: PublicIdSchema;
6717
+ id: PublicIdSchema;
6718
+ promotedCommitHash: z.ZodOptional<z.ZodString>;
6719
+ settledAt: z.ZodOptional<z.ZodISODateTime>;
6720
+ status: z.ZodEnum<{
6721
+ pending: "pending";
6722
+ conflicted: "conflicted";
6723
+ resolving: "resolving";
6724
+ promoted: "promoted";
6725
+ "no-changes": "no-changes";
6726
+ abandoned: "abandoned";
6727
+ }>;
6728
+ url: z.ZodURL;
6086
6729
  }, z.core.$strip>;
6087
6730
  };
6088
- resume: {
6731
+ resolve: {
6089
6732
  readonly annotationJustifications: {
6090
- readonly destructiveHint: "Enables automatic test execution that can overwrite or delete application data.";
6091
- readonly openWorldHint: "Resumed execution can change the application under test and update connected integrations.";
6092
- readonly readOnlyHint: "Reactivates a legacy trigger and its pull request copies so future schedules or deployments can start runs.";
6733
+ readonly destructiveHint: "Lands the resolved files on the base environment's flow code branch and terminates the head environment once they land.";
6734
+ readonly openWorldHint: "Changes QA Wolf flow code branches only, not the customer's own repository or deployments.";
6735
+ readonly readOnlyHint: "Records a resolution that a background executor applies to the base branch.";
6093
6736
  };
6094
6737
  readonly annotations: {
6095
6738
  readonly destructiveHint: true;
6096
- readonly openWorldHint: true;
6739
+ readonly openWorldHint: false;
6097
6740
  readonly readOnlyHint: false;
6098
6741
  };
6099
- readonly description: string;
6742
+ readonly description: "Submit the resolution of a conflicted promotion: the full resolved contents of every conflicting path to keep, and every conflicting path to delete. Together they must cover exactly the paths in the promotion's conflict, and both commit hashes must match the conflict's; if a branch moved since, the call is refused as stale-conflict and promotion.get has the current conflict. Returns the promotion in resolving; poll promotion.get until it is promoted, or conflicted again if the branches moved while it applied.";
6100
6743
  readonly input: z.ZodObject<{
6101
- legacyTriggerId: PublicIdSchema;
6744
+ deletes: z.ZodOptional<z.ZodArray<z.ZodString>>;
6745
+ expectedSourceCommitHash: z.ZodString;
6746
+ expectedTargetCommitHash: z.ZodString;
6747
+ promotionId: PublicIdSchema;
6748
+ writes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6102
6749
  }, z.core.$strip>;
6103
6750
  readonly kind: "write";
6104
- readonly name: "legacyTrigger.resume";
6751
+ readonly name: "promotion.resolve";
6105
6752
  readonly output: z.ZodObject<{
6106
- isPaused: z.ZodBoolean;
6107
- legacyTriggerId: PublicIdSchema;
6753
+ aiTaskId: z.ZodOptional<PublicIdSchema>;
6754
+ baseEnvironmentId: PublicIdSchema;
6755
+ conflict: z.ZodOptional<z.ZodObject<{
6756
+ paths: z.ZodArray<z.ZodString>;
6757
+ sourceCommitHash: z.ZodString;
6758
+ targetCommitHash: z.ZodString;
6759
+ }, z.core.$strip>>;
6760
+ createdAt: z.ZodISODateTime;
6761
+ headEnvironmentId: PublicIdSchema;
6762
+ id: PublicIdSchema;
6763
+ promotedCommitHash: z.ZodOptional<z.ZodString>;
6764
+ settledAt: z.ZodOptional<z.ZodISODateTime>;
6765
+ status: z.ZodEnum<{
6766
+ pending: "pending";
6767
+ conflicted: "conflicted";
6768
+ resolving: "resolving";
6769
+ promoted: "promoted";
6770
+ "no-changes": "no-changes";
6771
+ abandoned: "abandoned";
6772
+ }>;
6773
+ url: z.ZodURL;
6108
6774
  }, z.core.$strip>;
6109
6775
  };
6110
6776
  };
@@ -6229,8 +6895,8 @@ export declare const publicContractsV1: {
6229
6895
  lastReproducedInRunId: PublicIdSchema;
6230
6896
  }, z.core.$strip>>;
6231
6897
  status: z.ZodEnum<{
6232
- canceled: "canceled";
6233
6898
  pending: "pending";
6899
+ canceled: "canceled";
6234
6900
  backlog: "backlog";
6235
6901
  inProgress: "inProgress";
6236
6902
  paused: "paused";
@@ -6443,200 +7109,6 @@ export declare const publicContractsV1: {
6443
7109
  url: z.ZodURL;
6444
7110
  }, z.core.$strip>;
6445
7111
  };
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
7112
  listScreenshotComparisons: {
6641
7113
  readonly annotationJustifications: {
6642
7114
  readonly destructiveHint: "Does not change baselines, results or the run.";
@@ -6737,6 +7209,7 @@ export declare const publicContractsV1: {
6737
7209
  readonly name: "run.reattempt";
6738
7210
  readonly output: z.ZodObject<{
6739
7211
  reattemptedFlowIds: z.ZodArray<PublicIdSchema>;
7212
+ reattemptedInRunIds: z.ZodArray<PublicIdSchema>;
6740
7213
  runId: PublicIdSchema;
6741
7214
  url: z.ZodURL;
6742
7215
  }, z.core.$strip>;
@@ -6900,7 +7373,7 @@ export declare const publicContractsV1: {
6900
7373
  readonly openWorldHint: false;
6901
7374
  readonly readOnlyHint: false;
6902
7375
  };
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.";
7376
+ 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
7377
  readonly input: z.ZodObject<{
6905
7378
  id: z.ZodString;
6906
7379
  workspaceId: z.ZodOptional<PublicIdSchema>;
@@ -6981,8 +7454,8 @@ export declare const publicContractsV1: {
6981
7454
  endedAt: z.ZodISODateTime;
6982
7455
  id: z.ZodUUID;
6983
7456
  mode: z.ZodEnum<{
6984
- automatic: "automatic";
6985
7457
  manual: "manual";
7458
+ automatic: "automatic";
6986
7459
  }>;
6987
7460
  runIds: z.ZodArray<z.ZodString>;
6988
7461
  runnerId: z.ZodString;
@@ -6998,8 +7471,8 @@ export declare const publicContractsV1: {
6998
7471
  active: z.ZodOptional<z.ZodObject<{
6999
7472
  id: z.ZodUUID;
7000
7473
  mode: z.ZodEnum<{
7001
- automatic: "automatic";
7002
7474
  manual: "manual";
7475
+ automatic: "automatic";
7003
7476
  }>;
7004
7477
  startedAt: z.ZodISODateTime;
7005
7478
  }, z.core.$strip>>;
@@ -7050,8 +7523,8 @@ export declare const publicContractsV1: {
7050
7523
  endedAt: z.ZodISODateTime;
7051
7524
  id: z.ZodUUID;
7052
7525
  mode: z.ZodEnum<{
7053
- automatic: "automatic";
7054
7526
  manual: "manual";
7527
+ automatic: "automatic";
7055
7528
  }>;
7056
7529
  runIds: z.ZodArray<z.ZodString>;
7057
7530
  runnerId: z.ZodString;
@@ -7092,8 +7565,8 @@ export declare const publicContractsV1: {
7092
7565
  errorMessage: z.ZodOptional<z.ZodString>;
7093
7566
  outcome: z.ZodLiteral<"success">;
7094
7567
  result: z.ZodEnum<{
7095
- success: "success";
7096
7568
  error: "error";
7569
+ success: "success";
7097
7570
  stopped: "stopped";
7098
7571
  }>;
7099
7572
  }, z.core.$strip>, z.ZodObject<{
@@ -7254,7 +7727,7 @@ export declare const publicContractsV1: {
7254
7727
  readonly openWorldHint: false;
7255
7728
  readonly readOnlyHint: true;
7256
7729
  };
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.";
7730
+ 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
7731
  readonly input: z.ZodObject<{
7259
7732
  id: z.ZodString;
7260
7733
  request: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -7553,7 +8026,7 @@ export declare const publicContractsV1: {
7553
8026
  readonly openWorldHint: true;
7554
8027
  readonly readOnlyHint: false;
7555
8028
  };
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.";
8029
+ 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
8030
  readonly input: z.ZodObject<{
7558
8031
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
7559
8032
  button: z.ZodLiteral<"left" | "right" | "wheel" | "back" | "forward">;
@@ -7657,7 +8130,7 @@ export declare const publicContractsV1: {
7657
8130
  readonly openWorldHint: true;
7658
8131
  readonly readOnlyHint: false;
7659
8132
  };
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.";
8133
+ 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
8134
  readonly input: z.ZodObject<{
7662
8135
  actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7663
8136
  button: z.ZodLiteral<"left" | "right" | "wheel" | "back" | "forward">;