@qawolf/api-contracts 0.130.0 → 0.132.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 (96) hide show
  1. package/dist/v1/activity/wait.d.ts +2 -2
  2. package/dist/v1/agent/get.d.ts +1 -1
  3. package/dist/v1/agent/send.d.ts +1 -1
  4. package/dist/v1/agent/status.d.ts +1 -1
  5. package/dist/v1/attempt/get.d.ts +14 -14
  6. package/dist/v1/deployment/verdict.d.ts +7 -7
  7. package/dist/v1/deployment/verdictParts.d.ts +2 -2
  8. package/dist/v1/environment/find.d.ts +2 -0
  9. package/dist/v1/environment/find.d.ts.map +1 -1
  10. package/dist/v1/environment/find.js +14 -1
  11. package/dist/v1/environment/find.js.map +1 -1
  12. package/dist/v1/environment/promote.d.ts +45 -0
  13. package/dist/v1/environment/promote.d.ts.map +1 -1
  14. package/dist/v1/flow/getHistory.d.ts +1 -1
  15. package/dist/v1/ids.d.ts +2 -0
  16. package/dist/v1/ids.d.ts.map +1 -1
  17. package/dist/v1/ids.js +4 -0
  18. package/dist/v1/ids.js.map +1 -1
  19. package/dist/v1/index.d.ts +1199 -248
  20. package/dist/v1/index.d.ts.map +1 -1
  21. package/dist/v1/index.js +3 -0
  22. package/dist/v1/index.js.map +1 -1
  23. package/dist/v1/investigation/get.d.ts +1 -1
  24. package/dist/v1/investigation/index.d.ts +1 -1
  25. package/dist/v1/issue/contracts.d.ts +0 -74
  26. package/dist/v1/issue/contracts.d.ts.map +1 -1
  27. package/dist/v1/issue/contracts.js +0 -2
  28. package/dist/v1/issue/contracts.js.map +1 -1
  29. package/dist/v1/narratedRecording/get.d.ts +1 -1
  30. package/dist/v1/promotion/decision.d.ts +51 -0
  31. package/dist/v1/promotion/decision.d.ts.map +1 -0
  32. package/dist/v1/promotion/decision.js +32 -0
  33. package/dist/v1/promotion/decision.js.map +1 -0
  34. package/dist/v1/promotion/find.d.ts +45 -0
  35. package/dist/v1/promotion/find.d.ts.map +1 -1
  36. package/dist/v1/promotion/get.d.ts +45 -0
  37. package/dist/v1/promotion/get.d.ts.map +1 -1
  38. package/dist/v1/promotion/index.d.ts +270 -0
  39. package/dist/v1/promotion/index.d.ts.map +1 -1
  40. package/dist/v1/promotion/index.js +3 -0
  41. package/dist/v1/promotion/index.js.map +1 -1
  42. package/dist/v1/promotion/needsPerson.d.ts +25 -0
  43. package/dist/v1/promotion/needsPerson.d.ts.map +1 -0
  44. package/dist/v1/promotion/needsPerson.js +20 -0
  45. package/dist/v1/promotion/needsPerson.js.map +1 -0
  46. package/dist/v1/promotion/reportDecision.d.ts +142 -0
  47. package/dist/v1/promotion/reportDecision.d.ts.map +1 -0
  48. package/dist/v1/promotion/reportDecision.js +72 -0
  49. package/dist/v1/promotion/reportDecision.js.map +1 -0
  50. package/dist/v1/promotion/resolve.d.ts +45 -0
  51. package/dist/v1/promotion/resolve.d.ts.map +1 -1
  52. package/dist/v1/promotion/resource.d.ts +45 -0
  53. package/dist/v1/promotion/resource.d.ts.map +1 -1
  54. package/dist/v1/promotion/resource.js +9 -0
  55. package/dist/v1/promotion/resource.js.map +1 -1
  56. package/dist/v1/promotion/validationRun.d.ts +2 -0
  57. package/dist/v1/promotion/validationRun.d.ts.map +1 -1
  58. package/dist/v1/promotion/validationRun.js +2 -2
  59. package/dist/v1/promotion/validationRun.js.map +1 -1
  60. package/dist/v1/run/find.d.ts +1 -1
  61. package/dist/v1/run/get.d.ts +3 -3
  62. package/dist/v1/run/index.d.ts +1 -0
  63. package/dist/v1/run/index.d.ts.map +1 -1
  64. package/dist/v1/run/index.js +1 -1
  65. package/dist/v1/run/index.js.map +1 -1
  66. package/dist/v1/run/summary.d.ts +1 -1
  67. package/dist/v1/runEventsWebhook/index.d.ts +10 -10
  68. package/dist/v1/runner/journal.d.ts +1 -1
  69. package/dist/v1/runner/journal.d.ts.map +1 -1
  70. package/dist/v1/runner/journal.js +1 -0
  71. package/dist/v1/runner/journal.js.map +1 -1
  72. package/dist/v1/suggestion/decide.d.ts +90 -0
  73. package/dist/v1/suggestion/decide.d.ts.map +1 -0
  74. package/dist/v1/suggestion/decide.js +35 -0
  75. package/dist/v1/suggestion/decide.js.map +1 -0
  76. package/dist/v1/suggestion/find.d.ts +87 -0
  77. package/dist/v1/suggestion/find.d.ts.map +1 -0
  78. package/dist/v1/suggestion/find.js +40 -0
  79. package/dist/v1/suggestion/find.js.map +1 -0
  80. package/dist/v1/suggestion/get.d.ts +78 -0
  81. package/dist/v1/suggestion/get.d.ts.map +1 -0
  82. package/dist/v1/suggestion/get.js +27 -0
  83. package/dist/v1/suggestion/get.js.map +1 -0
  84. package/dist/v1/suggestion/index.d.ts +240 -0
  85. package/dist/v1/suggestion/index.d.ts.map +1 -0
  86. package/dist/v1/suggestion/index.js +9 -0
  87. package/dist/v1/suggestion/index.js.map +1 -0
  88. package/dist/v1/suggestion/resource.d.ts +70 -0
  89. package/dist/v1/suggestion/resource.d.ts.map +1 -0
  90. package/dist/v1/suggestion/resource.js +63 -0
  91. package/dist/v1/suggestion/resource.js.map +1 -0
  92. package/package.json +1 -1
  93. package/dist/v1/issue/decideSuggestion.d.ts +0 -82
  94. package/dist/v1/issue/decideSuggestion.d.ts.map +0 -1
  95. package/dist/v1/issue/decideSuggestion.js +0 -40
  96. package/dist/v1/issue/decideSuggestion.js.map +0 -1
@@ -1,6 +1,7 @@
1
1
  import type { PublicIdSchema } from "../ids.js";
2
2
  export { makeFindPromotionsContract } from "./find.js";
3
3
  export { makeGetPromotionContract } from "./get.js";
4
+ export { makeReportPromotionDecisionContract } from "./reportDecision.js";
4
5
  export { makeResolvePromotionContract, maxResolvedFileBytes, } from "./resolve.js";
5
6
  export { type PromotionStatus, makePromotionResourceSchema, promotionStatusSchema, } from "./resource.js";
6
7
  export declare const makePromotionContracts: <AiTaskId extends PublicIdSchema, ChatSessionId extends PublicIdSchema, EnvironmentId extends PublicIdSchema, PromotionId extends PublicIdSchema, RunId extends PublicIdSchema, WorkspaceId extends PublicIdSchema>(ids: {
@@ -51,8 +52,52 @@ export declare const makePromotionContracts: <AiTaskId extends PublicIdSchema, C
51
52
  targetCommitHash: import("zod").ZodString;
52
53
  }, import("zod/v4/core").$strip>>;
53
54
  createdAt: import("zod").ZodISODateTime;
55
+ decisions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
56
+ candidateRuns: import("zod").ZodArray<import("zod").ZodObject<{
57
+ candidate: import("zod").ZodEnum<{
58
+ combined: "combined";
59
+ head: "head";
60
+ base: "base";
61
+ }>;
62
+ outcome: import("zod").ZodEnum<{
63
+ passed: "passed";
64
+ failed: "failed";
65
+ inconclusive: "inconclusive";
66
+ }>;
67
+ runId: RunId;
68
+ }, import("zod/v4/core").$strip>>;
69
+ kept: import("zod").ZodOptional<import("zod").ZodEnum<{
70
+ combined: "combined";
71
+ head: "head";
72
+ base: "base";
73
+ }>>;
74
+ path: import("zod").ZodString;
75
+ reason: import("zod").ZodString;
76
+ sourceCommitHash: import("zod").ZodString;
77
+ targetCommitHash: import("zod").ZodString;
78
+ type: import("zod").ZodEnum<{
79
+ "picked-by-run": "picked-by-run";
80
+ combined: "combined";
81
+ "kept-more-checks": "kept-more-checks";
82
+ "needs-person": "needs-person";
83
+ }>;
84
+ }, import("zod/v4/core").$strip>>>;
54
85
  headEnvironmentId: EnvironmentId;
55
86
  id: PromotionId;
87
+ needsPerson: import("zod").ZodOptional<import("zod").ZodObject<{
88
+ paths: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
89
+ path: import("zod").ZodString;
90
+ }, import("zod/v4/core").$strip>>>;
91
+ reason: import("zod").ZodEnum<{
92
+ "undecided-paths": "undecided-paths";
93
+ "run-limit-reached": "run-limit-reached";
94
+ "flows-undetermined": "flows-undetermined";
95
+ "agent-stopped": "agent-stopped";
96
+ "agent-failed": "agent-failed";
97
+ "agent-not-started": "agent-not-started";
98
+ "agent-resolution-off": "agent-resolution-off";
99
+ }>;
100
+ }, import("zod/v4/core").$strip>>;
56
101
  promotedCommitHash: import("zod").ZodOptional<import("zod").ZodString>;
57
102
  settledAt: import("zod").ZodOptional<import("zod").ZodISODateTime>;
58
103
  status: import("zod").ZodEnum<{
@@ -68,6 +113,7 @@ export declare const makePromotionContracts: <AiTaskId extends PublicIdSchema, C
68
113
  runId: RunId;
69
114
  runMode: import("zod").ZodEnum<{
70
115
  "confirm-after": "confirm-after";
116
+ "choose-version": "choose-version";
71
117
  }>;
72
118
  sourceCommitHash: import("zod").ZodString;
73
119
  targetCommitHash: import("zod").ZodString;
@@ -102,8 +148,52 @@ export declare const makePromotionContracts: <AiTaskId extends PublicIdSchema, C
102
148
  targetCommitHash: import("zod").ZodString;
103
149
  }, import("zod/v4/core").$strip>>;
104
150
  createdAt: import("zod").ZodISODateTime;
151
+ decisions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
152
+ candidateRuns: import("zod").ZodArray<import("zod").ZodObject<{
153
+ candidate: import("zod").ZodEnum<{
154
+ combined: "combined";
155
+ head: "head";
156
+ base: "base";
157
+ }>;
158
+ outcome: import("zod").ZodEnum<{
159
+ passed: "passed";
160
+ failed: "failed";
161
+ inconclusive: "inconclusive";
162
+ }>;
163
+ runId: RunId;
164
+ }, import("zod/v4/core").$strip>>;
165
+ kept: import("zod").ZodOptional<import("zod").ZodEnum<{
166
+ combined: "combined";
167
+ head: "head";
168
+ base: "base";
169
+ }>>;
170
+ path: import("zod").ZodString;
171
+ reason: import("zod").ZodString;
172
+ sourceCommitHash: import("zod").ZodString;
173
+ targetCommitHash: import("zod").ZodString;
174
+ type: import("zod").ZodEnum<{
175
+ "picked-by-run": "picked-by-run";
176
+ combined: "combined";
177
+ "kept-more-checks": "kept-more-checks";
178
+ "needs-person": "needs-person";
179
+ }>;
180
+ }, import("zod/v4/core").$strip>>>;
105
181
  headEnvironmentId: EnvironmentId;
106
182
  id: PromotionId;
183
+ needsPerson: import("zod").ZodOptional<import("zod").ZodObject<{
184
+ paths: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
185
+ path: import("zod").ZodString;
186
+ }, import("zod/v4/core").$strip>>>;
187
+ reason: import("zod").ZodEnum<{
188
+ "undecided-paths": "undecided-paths";
189
+ "run-limit-reached": "run-limit-reached";
190
+ "flows-undetermined": "flows-undetermined";
191
+ "agent-stopped": "agent-stopped";
192
+ "agent-failed": "agent-failed";
193
+ "agent-not-started": "agent-not-started";
194
+ "agent-resolution-off": "agent-resolution-off";
195
+ }>;
196
+ }, import("zod/v4/core").$strip>>;
107
197
  promotedCommitHash: import("zod").ZodOptional<import("zod").ZodString>;
108
198
  settledAt: import("zod").ZodOptional<import("zod").ZodISODateTime>;
109
199
  status: import("zod").ZodEnum<{
@@ -119,6 +209,7 @@ export declare const makePromotionContracts: <AiTaskId extends PublicIdSchema, C
119
209
  runId: RunId;
120
210
  runMode: import("zod").ZodEnum<{
121
211
  "confirm-after": "confirm-after";
212
+ "choose-version": "choose-version";
122
213
  }>;
123
214
  sourceCommitHash: import("zod").ZodString;
124
215
  targetCommitHash: import("zod").ZodString;
@@ -127,6 +218,140 @@ export declare const makePromotionContracts: <AiTaskId extends PublicIdSchema, C
127
218
  aiTaskSessionId: import("zod").ZodOptional<ChatSessionId>;
128
219
  }, import("zod/v4/core").$strip>;
129
220
  };
221
+ reportDecision: {
222
+ readonly annotationJustifications: {
223
+ readonly destructiveHint: "Records a decision on the promotion and changes no flow code.";
224
+ readonly openWorldHint: "Changes a private QA Wolf promotion record without touching external systems.";
225
+ readonly readOnlyHint: "Records how a conflicting path was settled.";
226
+ };
227
+ readonly annotations: {
228
+ readonly destructiveHint: false;
229
+ readonly openWorldHint: false;
230
+ readonly readOnlyHint: false;
231
+ };
232
+ readonly description: "Record how one conflicting path of a conflicted promotion was settled by running its versions, or why it is left for a person, with the run of each version. Exactly one passing version is kept (picked-by-run); when every version passed, they are combined or the one with more checks is kept; a person is asked only when every version failed or the runs could not tell them apart. Every run must have been started for this promotion's resolution. Reporting a path again replaces its decision. Returns the promotion.";
233
+ readonly input: import("zod").ZodObject<{
234
+ base: import("zod").ZodOptional<import("zod").ZodObject<{
235
+ outcome: import("zod").ZodEnum<{
236
+ passed: "passed";
237
+ failed: "failed";
238
+ inconclusive: "inconclusive";
239
+ }>;
240
+ runId: RunId;
241
+ }, import("zod/v4/core").$strip>>;
242
+ combined: import("zod").ZodOptional<import("zod").ZodObject<{
243
+ outcome: import("zod").ZodEnum<{
244
+ passed: "passed";
245
+ failed: "failed";
246
+ inconclusive: "inconclusive";
247
+ }>;
248
+ runId: RunId;
249
+ }, import("zod/v4/core").$strip>>;
250
+ decision: import("zod").ZodEnum<{
251
+ "picked-by-run": "picked-by-run";
252
+ combined: "combined";
253
+ "kept-more-checks": "kept-more-checks";
254
+ "needs-person": "needs-person";
255
+ }>;
256
+ expectedSourceCommitHash: import("zod").ZodString;
257
+ expectedTargetCommitHash: import("zod").ZodString;
258
+ head: import("zod").ZodOptional<import("zod").ZodObject<{
259
+ outcome: import("zod").ZodEnum<{
260
+ passed: "passed";
261
+ failed: "failed";
262
+ inconclusive: "inconclusive";
263
+ }>;
264
+ runId: RunId;
265
+ }, import("zod/v4/core").$strip>>;
266
+ kept: import("zod").ZodOptional<import("zod").ZodEnum<{
267
+ combined: "combined";
268
+ head: "head";
269
+ base: "base";
270
+ }>>;
271
+ path: import("zod").ZodString;
272
+ promotionId: PromotionId;
273
+ reason: import("zod").ZodString;
274
+ }, import("zod/v4/core").$strip>;
275
+ readonly kind: "write";
276
+ readonly name: "promotion.reportDecision";
277
+ readonly output: import("zod").ZodObject<{
278
+ aiTaskId: import("zod").ZodOptional<AiTaskId>;
279
+ baseEnvironmentId: EnvironmentId;
280
+ conflict: import("zod").ZodOptional<import("zod").ZodObject<{
281
+ paths: import("zod").ZodArray<import("zod").ZodString>;
282
+ sourceCommitHash: import("zod").ZodString;
283
+ targetCommitHash: import("zod").ZodString;
284
+ }, import("zod/v4/core").$strip>>;
285
+ createdAt: import("zod").ZodISODateTime;
286
+ decisions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
287
+ candidateRuns: import("zod").ZodArray<import("zod").ZodObject<{
288
+ candidate: import("zod").ZodEnum<{
289
+ combined: "combined";
290
+ head: "head";
291
+ base: "base";
292
+ }>;
293
+ outcome: import("zod").ZodEnum<{
294
+ passed: "passed";
295
+ failed: "failed";
296
+ inconclusive: "inconclusive";
297
+ }>;
298
+ runId: RunId;
299
+ }, import("zod/v4/core").$strip>>;
300
+ kept: import("zod").ZodOptional<import("zod").ZodEnum<{
301
+ combined: "combined";
302
+ head: "head";
303
+ base: "base";
304
+ }>>;
305
+ path: import("zod").ZodString;
306
+ reason: import("zod").ZodString;
307
+ sourceCommitHash: import("zod").ZodString;
308
+ targetCommitHash: import("zod").ZodString;
309
+ type: import("zod").ZodEnum<{
310
+ "picked-by-run": "picked-by-run";
311
+ combined: "combined";
312
+ "kept-more-checks": "kept-more-checks";
313
+ "needs-person": "needs-person";
314
+ }>;
315
+ }, import("zod/v4/core").$strip>>>;
316
+ headEnvironmentId: EnvironmentId;
317
+ id: PromotionId;
318
+ needsPerson: import("zod").ZodOptional<import("zod").ZodObject<{
319
+ paths: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
320
+ path: import("zod").ZodString;
321
+ }, import("zod/v4/core").$strip>>>;
322
+ reason: import("zod").ZodEnum<{
323
+ "undecided-paths": "undecided-paths";
324
+ "run-limit-reached": "run-limit-reached";
325
+ "flows-undetermined": "flows-undetermined";
326
+ "agent-stopped": "agent-stopped";
327
+ "agent-failed": "agent-failed";
328
+ "agent-not-started": "agent-not-started";
329
+ "agent-resolution-off": "agent-resolution-off";
330
+ }>;
331
+ }, import("zod/v4/core").$strip>>;
332
+ promotedCommitHash: import("zod").ZodOptional<import("zod").ZodString>;
333
+ settledAt: import("zod").ZodOptional<import("zod").ZodISODateTime>;
334
+ status: import("zod").ZodEnum<{
335
+ pending: "pending";
336
+ conflicted: "conflicted";
337
+ resolving: "resolving";
338
+ promoted: "promoted";
339
+ "no-changes": "no-changes";
340
+ abandoned: "abandoned";
341
+ }>;
342
+ validationRuns: import("zod").ZodArray<import("zod").ZodObject<{
343
+ aiTaskId: AiTaskId;
344
+ runId: RunId;
345
+ runMode: import("zod").ZodEnum<{
346
+ "confirm-after": "confirm-after";
347
+ "choose-version": "choose-version";
348
+ }>;
349
+ sourceCommitHash: import("zod").ZodString;
350
+ targetCommitHash: import("zod").ZodString;
351
+ }, import("zod/v4/core").$strip>>;
352
+ url: import("zod").ZodURL;
353
+ }, import("zod/v4/core").$strip>;
354
+ };
130
355
  resolve: {
131
356
  readonly annotationJustifications: {
132
357
  readonly destructiveHint: "Lands the resolved files on the base environment's flow code branch and terminates the head environment once they land.";
@@ -157,8 +382,52 @@ export declare const makePromotionContracts: <AiTaskId extends PublicIdSchema, C
157
382
  targetCommitHash: import("zod").ZodString;
158
383
  }, import("zod/v4/core").$strip>>;
159
384
  createdAt: import("zod").ZodISODateTime;
385
+ decisions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
386
+ candidateRuns: import("zod").ZodArray<import("zod").ZodObject<{
387
+ candidate: import("zod").ZodEnum<{
388
+ combined: "combined";
389
+ head: "head";
390
+ base: "base";
391
+ }>;
392
+ outcome: import("zod").ZodEnum<{
393
+ passed: "passed";
394
+ failed: "failed";
395
+ inconclusive: "inconclusive";
396
+ }>;
397
+ runId: RunId;
398
+ }, import("zod/v4/core").$strip>>;
399
+ kept: import("zod").ZodOptional<import("zod").ZodEnum<{
400
+ combined: "combined";
401
+ head: "head";
402
+ base: "base";
403
+ }>>;
404
+ path: import("zod").ZodString;
405
+ reason: import("zod").ZodString;
406
+ sourceCommitHash: import("zod").ZodString;
407
+ targetCommitHash: import("zod").ZodString;
408
+ type: import("zod").ZodEnum<{
409
+ "picked-by-run": "picked-by-run";
410
+ combined: "combined";
411
+ "kept-more-checks": "kept-more-checks";
412
+ "needs-person": "needs-person";
413
+ }>;
414
+ }, import("zod/v4/core").$strip>>>;
160
415
  headEnvironmentId: EnvironmentId;
161
416
  id: PromotionId;
417
+ needsPerson: import("zod").ZodOptional<import("zod").ZodObject<{
418
+ paths: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
419
+ path: import("zod").ZodString;
420
+ }, import("zod/v4/core").$strip>>>;
421
+ reason: import("zod").ZodEnum<{
422
+ "undecided-paths": "undecided-paths";
423
+ "run-limit-reached": "run-limit-reached";
424
+ "flows-undetermined": "flows-undetermined";
425
+ "agent-stopped": "agent-stopped";
426
+ "agent-failed": "agent-failed";
427
+ "agent-not-started": "agent-not-started";
428
+ "agent-resolution-off": "agent-resolution-off";
429
+ }>;
430
+ }, import("zod/v4/core").$strip>>;
162
431
  promotedCommitHash: import("zod").ZodOptional<import("zod").ZodString>;
163
432
  settledAt: import("zod").ZodOptional<import("zod").ZodISODateTime>;
164
433
  status: import("zod").ZodEnum<{
@@ -174,6 +443,7 @@ export declare const makePromotionContracts: <AiTaskId extends PublicIdSchema, C
174
443
  runId: RunId;
175
444
  runMode: import("zod").ZodEnum<{
176
445
  "confirm-after": "confirm-after";
446
+ "choose-version": "choose-version";
177
447
  }>;
178
448
  sourceCommitHash: import("zod").ZodString;
179
449
  targetCommitHash: import("zod").ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/promotion/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAMhD,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EACL,4BAA4B,EAC5B,oBAAoB,GACrB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,KAAK,eAAe,EACpB,2BAA2B,EAC3B,qBAAqB,GACtB,MAAM,eAAe,CAAC;AAEvB,eAAO,MAAM,sBAAsB,GACjC,QAAQ,SAAS,cAAc,EAC/B,aAAa,SAAS,cAAc,EACpC,a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W,EAAE,aAAa,CAAC;IAC3B,cAAc,EAAE,cAAc,CAAC;IAC/B,SAAS,EAAE,WAAW,CAAC;IACvB,GAAG,EAAE,KAAK,CAAC;IACX,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKC,CAAC"}
@@ -1,13 +1,16 @@
1
1
  import { makeFindPromotionsContract } from "./find.js";
2
2
  import { makeGetPromotionContract } from "./get.js";
3
+ import { makeReportPromotionDecisionContract } from "./reportDecision.js";
3
4
  import { makeResolvePromotionContract } from "./resolve.js";
4
5
  export { makeFindPromotionsContract } from "./find.js";
5
6
  export { makeGetPromotionContract } from "./get.js";
7
+ export { makeReportPromotionDecisionContract } from "./reportDecision.js";
6
8
  export { makeResolvePromotionContract, maxResolvedFileBytes, } from "./resolve.js";
7
9
  export { makePromotionResourceSchema, promotionStatusSchema, } from "./resource.js";
8
10
  export const makePromotionContracts = (ids) => ({
9
11
  find: makeFindPromotionsContract(ids),
10
12
  get: makeGetPromotionContract(ids),
13
+ reportDecision: makeReportPromotionDecisionContract(ids),
11
14
  resolve: makeResolvePromotionContract(ids),
12
15
  });
13
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/promotion/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC;AAE5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EACL,4BAA4B,EAC5B,oBAAoB,GACrB,MAAM,cAAc,CAAC;AACtB,OAAO,EAEL,2BAA2B,EAC3B,qBAAqB,GACtB,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAOpC,GAQD,EAAE,EAAE,CAAC,CAAC;IACL,IAAI,EAAE,0BAA0B,CAAC,GAAG,CAAC;IACrC,GAAG,EAAE,wBAAwB,CAAC,GAAG,CAAC;IAClC,OAAO,EAAE,4BAA4B,CAAC,GAAG,CAAC;CAC3C,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/promotion/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,mCAAmC,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC;AAE5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,mCAAmC,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EACL,4BAA4B,EAC5B,oBAAoB,GACrB,MAAM,cAAc,CAAC;AACtB,OAAO,EAEL,2BAA2B,EAC3B,qBAAqB,GACtB,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAOpC,GAQD,EAAE,EAAE,CAAC,CAAC;IACL,IAAI,EAAE,0BAA0B,CAAC,GAAG,CAAC;IACrC,GAAG,EAAE,wBAAwB,CAAC,GAAG,CAAC;IAClC,cAAc,EAAE,mCAAmC,CAAC,GAAG,CAAC;IACxD,OAAO,EAAE,4BAA4B,CAAC,GAAG,CAAC;CAC3C,CAAC,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { z } from "zod";
2
+ export declare const promotionNeedsPersonReasonSchema: z.ZodEnum<{
3
+ "undecided-paths": "undecided-paths";
4
+ "run-limit-reached": "run-limit-reached";
5
+ "flows-undetermined": "flows-undetermined";
6
+ "agent-stopped": "agent-stopped";
7
+ "agent-failed": "agent-failed";
8
+ "agent-not-started": "agent-not-started";
9
+ "agent-resolution-off": "agent-resolution-off";
10
+ }>;
11
+ export declare const promotionNeedsPersonSchema: z.ZodObject<{
12
+ paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
13
+ path: z.ZodString;
14
+ }, z.core.$strip>>>;
15
+ reason: z.ZodEnum<{
16
+ "undecided-paths": "undecided-paths";
17
+ "run-limit-reached": "run-limit-reached";
18
+ "flows-undetermined": "flows-undetermined";
19
+ "agent-stopped": "agent-stopped";
20
+ "agent-failed": "agent-failed";
21
+ "agent-not-started": "agent-not-started";
22
+ "agent-resolution-off": "agent-resolution-off";
23
+ }>;
24
+ }, z.core.$strip>;
25
+ //# sourceMappingURL=needsPerson.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"needsPerson.d.ts","sourceRoot":"","sources":["../../../src/v1/promotion/needsPerson.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gCAAgC;;;;;;;;EAY1C,CAAC;AAEJ,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;iBAMrC,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { z } from "zod";
2
+ export const promotionNeedsPersonReasonSchema = z
3
+ .enum([
4
+ "undecided-paths",
5
+ "run-limit-reached",
6
+ "flows-undetermined",
7
+ "agent-stopped",
8
+ "agent-failed",
9
+ "agent-not-started",
10
+ "agent-resolution-off",
11
+ ])
12
+ .describe("undecided-paths (the runs of these paths' versions, if any, left no single answer), run-limit-reached (the resolution agent started as many runs as one conflict allows), flows-undetermined (which flows the conflict affects could not be told, so no resolution could be checked), agent-stopped (the resolution agent finished without submitting; its session says why), agent-failed (the resolution agent failed, timed out or was canceled), agent-not-started (QA Wolf had no user to run the resolution agent as), agent-resolution-off (the workspace does not have QA Wolf resolve conflicts).");
13
+ export const promotionNeedsPersonSchema = z.object({
14
+ paths: z
15
+ .array(z.object({ path: z.string() }))
16
+ .optional()
17
+ .describe("The paths left undecided. Present for undecided-paths."),
18
+ reason: promotionNeedsPersonReasonSchema,
19
+ });
20
+ //# sourceMappingURL=needsPerson.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"needsPerson.js","sourceRoot":"","sources":["../../../src/v1/promotion/needsPerson.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC;KAC9C,IAAI,CAAC;IACJ,iBAAiB;IACjB,mBAAmB;IACnB,oBAAoB;IACpB,eAAe;IACf,cAAc;IACd,mBAAmB;IACnB,sBAAsB;CACvB,CAAC;KACD,QAAQ,CACP,4kBAA4kB,CAC7kB,CAAC;AAEJ,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,KAAK,EAAE,CAAC;SACL,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;SACrC,QAAQ,EAAE;SACV,QAAQ,CAAC,wDAAwD,CAAC;IACrE,MAAM,EAAE,gCAAgC;CACzC,CAAC,CAAC"}
@@ -0,0 +1,142 @@
1
+ import { z } from "zod";
2
+ import type { PublicIdSchema } from "../ids.js";
3
+ export declare const makeReportPromotionDecisionContract: <AiTaskId extends PublicIdSchema, EnvironmentId extends PublicIdSchema, PromotionId extends PublicIdSchema, RunId extends PublicIdSchema>(ids: {
4
+ aiTask: AiTaskId;
5
+ environment: EnvironmentId;
6
+ promotion: PromotionId;
7
+ run: RunId;
8
+ }) => {
9
+ readonly annotationJustifications: {
10
+ readonly destructiveHint: "Records a decision on the promotion and changes no flow code.";
11
+ readonly openWorldHint: "Changes a private QA Wolf promotion record without touching external systems.";
12
+ readonly readOnlyHint: "Records how a conflicting path was settled.";
13
+ };
14
+ readonly annotations: {
15
+ readonly destructiveHint: false;
16
+ readonly openWorldHint: false;
17
+ readonly readOnlyHint: false;
18
+ };
19
+ readonly description: "Record how one conflicting path of a conflicted promotion was settled by running its versions, or why it is left for a person, with the run of each version. Exactly one passing version is kept (picked-by-run); when every version passed, they are combined or the one with more checks is kept; a person is asked only when every version failed or the runs could not tell them apart. Every run must have been started for this promotion's resolution. Reporting a path again replaces its decision. Returns the promotion.";
20
+ readonly input: z.ZodObject<{
21
+ base: z.ZodOptional<z.ZodObject<{
22
+ outcome: z.ZodEnum<{
23
+ passed: "passed";
24
+ failed: "failed";
25
+ inconclusive: "inconclusive";
26
+ }>;
27
+ runId: RunId;
28
+ }, z.core.$strip>>;
29
+ combined: z.ZodOptional<z.ZodObject<{
30
+ outcome: z.ZodEnum<{
31
+ passed: "passed";
32
+ failed: "failed";
33
+ inconclusive: "inconclusive";
34
+ }>;
35
+ runId: RunId;
36
+ }, z.core.$strip>>;
37
+ decision: z.ZodEnum<{
38
+ "picked-by-run": "picked-by-run";
39
+ combined: "combined";
40
+ "kept-more-checks": "kept-more-checks";
41
+ "needs-person": "needs-person";
42
+ }>;
43
+ expectedSourceCommitHash: z.ZodString;
44
+ expectedTargetCommitHash: z.ZodString;
45
+ head: z.ZodOptional<z.ZodObject<{
46
+ outcome: z.ZodEnum<{
47
+ passed: "passed";
48
+ failed: "failed";
49
+ inconclusive: "inconclusive";
50
+ }>;
51
+ runId: RunId;
52
+ }, z.core.$strip>>;
53
+ kept: z.ZodOptional<z.ZodEnum<{
54
+ combined: "combined";
55
+ head: "head";
56
+ base: "base";
57
+ }>>;
58
+ path: z.ZodString;
59
+ promotionId: PromotionId;
60
+ reason: z.ZodString;
61
+ }, z.core.$strip>;
62
+ readonly kind: "write";
63
+ readonly name: "promotion.reportDecision";
64
+ readonly output: z.ZodObject<{
65
+ aiTaskId: z.ZodOptional<AiTaskId>;
66
+ baseEnvironmentId: EnvironmentId;
67
+ conflict: z.ZodOptional<z.ZodObject<{
68
+ paths: z.ZodArray<z.ZodString>;
69
+ sourceCommitHash: z.ZodString;
70
+ targetCommitHash: z.ZodString;
71
+ }, z.core.$strip>>;
72
+ createdAt: z.ZodISODateTime;
73
+ decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
74
+ candidateRuns: z.ZodArray<z.ZodObject<{
75
+ candidate: z.ZodEnum<{
76
+ combined: "combined";
77
+ head: "head";
78
+ base: "base";
79
+ }>;
80
+ outcome: z.ZodEnum<{
81
+ passed: "passed";
82
+ failed: "failed";
83
+ inconclusive: "inconclusive";
84
+ }>;
85
+ runId: RunId;
86
+ }, z.core.$strip>>;
87
+ kept: z.ZodOptional<z.ZodEnum<{
88
+ combined: "combined";
89
+ head: "head";
90
+ base: "base";
91
+ }>>;
92
+ path: z.ZodString;
93
+ reason: z.ZodString;
94
+ sourceCommitHash: z.ZodString;
95
+ targetCommitHash: z.ZodString;
96
+ type: z.ZodEnum<{
97
+ "picked-by-run": "picked-by-run";
98
+ combined: "combined";
99
+ "kept-more-checks": "kept-more-checks";
100
+ "needs-person": "needs-person";
101
+ }>;
102
+ }, z.core.$strip>>>;
103
+ headEnvironmentId: EnvironmentId;
104
+ id: PromotionId;
105
+ needsPerson: z.ZodOptional<z.ZodObject<{
106
+ paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
107
+ path: z.ZodString;
108
+ }, z.core.$strip>>>;
109
+ reason: z.ZodEnum<{
110
+ "undecided-paths": "undecided-paths";
111
+ "run-limit-reached": "run-limit-reached";
112
+ "flows-undetermined": "flows-undetermined";
113
+ "agent-stopped": "agent-stopped";
114
+ "agent-failed": "agent-failed";
115
+ "agent-not-started": "agent-not-started";
116
+ "agent-resolution-off": "agent-resolution-off";
117
+ }>;
118
+ }, z.core.$strip>>;
119
+ promotedCommitHash: z.ZodOptional<z.ZodString>;
120
+ settledAt: z.ZodOptional<z.ZodISODateTime>;
121
+ status: z.ZodEnum<{
122
+ pending: "pending";
123
+ conflicted: "conflicted";
124
+ resolving: "resolving";
125
+ promoted: "promoted";
126
+ "no-changes": "no-changes";
127
+ abandoned: "abandoned";
128
+ }>;
129
+ validationRuns: z.ZodArray<z.ZodObject<{
130
+ aiTaskId: AiTaskId;
131
+ runId: RunId;
132
+ runMode: z.ZodEnum<{
133
+ "confirm-after": "confirm-after";
134
+ "choose-version": "choose-version";
135
+ }>;
136
+ sourceCommitHash: z.ZodString;
137
+ targetCommitHash: z.ZodString;
138
+ }, z.core.$strip>>;
139
+ url: z.ZodURL;
140
+ }, z.core.$strip>;
141
+ };
142
+ //# sourceMappingURL=reportDecision.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reportDecision.d.ts","sourceRoot":"","sources":["../../../src/v1/promotion/reportDecision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAWhD,eAAO,MAAM,mCAAmC,GAC9C,QAAQ,SAAS,cAAc,EAC/B,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK,SAAS,cAAc,EAC5B,KAAK;IACL,MAAM,EAAE,QAAQ,CAAC;IACjB,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;IACvB,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsFA,CAAC"}
@@ -0,0 +1,72 @@
1
+ import { z } from "zod";
2
+ import { promotionCandidateOutcomeSchema, promotionCandidateSchema, promotionDecisionTypeSchema, } from "./decision.js";
3
+ import { makePromotionResourceSchema } from "./resource.js";
4
+ const keptIsRequiredFor = new Set(["kept-more-checks", "picked-by-run"]);
5
+ export const makeReportPromotionDecisionContract = (ids) => {
6
+ const candidateRun = (version) => z
7
+ .object({
8
+ outcome: promotionCandidateOutcomeSchema,
9
+ runId: ids.run.describe(`The run of ${version}, started for this promotion's resolution.`),
10
+ })
11
+ .optional()
12
+ .describe(`How ${version} did when it ran. Omit when it did not run.`);
13
+ const input = z
14
+ .object({
15
+ base: candidateRun("the base environment's version"),
16
+ combined: candidateRun("the resolver's combination of both versions"),
17
+ decision: promotionDecisionTypeSchema,
18
+ expectedSourceCommitHash: z
19
+ .string()
20
+ .min(1)
21
+ .describe("conflict.sourceCommitHash from promotion.get. A different current commit means the branch moved and the call is refused."),
22
+ expectedTargetCommitHash: z
23
+ .string()
24
+ .min(1)
25
+ .describe("conflict.targetCommitHash from promotion.get. A different current commit means the branch moved and the call is refused."),
26
+ head: candidateRun("the head environment's version"),
27
+ kept: promotionCandidateSchema
28
+ .optional()
29
+ .describe("The version kept: required for picked-by-run and kept-more-checks (head or base), omitted otherwise."),
30
+ path: z
31
+ .string()
32
+ .min(1)
33
+ .max(1024)
34
+ .describe("One of the promotion's conflicting paths."),
35
+ promotionId: ids.promotion,
36
+ reason: z
37
+ .string()
38
+ .min(1)
39
+ .max(1000)
40
+ .describe("Why, in a sentence or two a person can read: what was kept and what the runs showed, or what is undecided."),
41
+ })
42
+ .superRefine(({ decision, kept }, refinement) => {
43
+ if (keptIsRequiredFor.has(decision) === (kept !== undefined))
44
+ return;
45
+ refinement.addIssue({
46
+ code: "custom",
47
+ message: keptIsRequiredFor.has(decision)
48
+ ? `${decision} needs the version it kept.`
49
+ : `${decision} keeps no single version; omit kept.`,
50
+ path: ["kept"],
51
+ });
52
+ });
53
+ const output = makePromotionResourceSchema(ids);
54
+ return {
55
+ annotationJustifications: {
56
+ destructiveHint: "Records a decision on the promotion and changes no flow code.",
57
+ openWorldHint: "Changes a private QA Wolf promotion record without touching external systems.",
58
+ readOnlyHint: "Records how a conflicting path was settled.",
59
+ },
60
+ annotations: {
61
+ destructiveHint: false,
62
+ openWorldHint: false,
63
+ readOnlyHint: false,
64
+ },
65
+ description: "Record how one conflicting path of a conflicted promotion was settled by running its versions, or why it is left for a person, with the run of each version. Exactly one passing version is kept (picked-by-run); when every version passed, they are combined or the one with more checks is kept; a person is asked only when every version failed or the runs could not tell them apart. Every run must have been started for this promotion's resolution. Reporting a path again replaces its decision. Returns the promotion.",
66
+ input,
67
+ kind: "write",
68
+ name: "promotion.reportDecision",
69
+ output,
70
+ };
71
+ };
72
+ //# sourceMappingURL=reportDecision.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reportDecision.js","sourceRoot":"","sources":["../../../src/v1/promotion/reportDecision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EACL,+BAA+B,EAC/B,wBAAwB,EACxB,2BAA2B,GAC5B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAE5D,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC,CAAC,kBAAkB,EAAE,eAAe,CAAC,CAAC,CAAC;AAEzE,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAKjD,GAKD,EAAE,EAAE;IACH,MAAM,YAAY,GAAG,CAAC,OAAe,EAAE,EAAE,CACvC,CAAC;S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