@qawolf/api-contracts 0.69.0 → 0.71.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 (63) hide show
  1. package/dist/v1/deployment/verdict.d.ts +161 -0
  2. package/dist/v1/deployment/verdict.d.ts.map +1 -0
  3. package/dist/v1/deployment/verdict.js +71 -0
  4. package/dist/v1/deployment/verdict.js.map +1 -0
  5. package/dist/v1/deployment/verdictParts.d.ts +72 -0
  6. package/dist/v1/deployment/verdictParts.d.ts.map +1 -0
  7. package/dist/v1/deployment/verdictParts.js +56 -0
  8. package/dist/v1/deployment/verdictParts.js.map +1 -0
  9. package/dist/v1/environment/create.d.ts +1 -1
  10. package/dist/v1/environment/find.d.ts +1 -1
  11. package/dist/v1/environment/index.d.ts +1 -1
  12. package/dist/v1/environment/resource.d.ts +1 -1
  13. package/dist/v1/environment/update.d.ts +1 -1
  14. package/dist/v1/index.d.ts +50 -418
  15. package/dist/v1/index.d.ts.map +1 -1
  16. package/dist/v1/index.js +0 -2
  17. package/dist/v1/index.js.map +1 -1
  18. package/dist/v1/investigation/index.d.ts +0 -144
  19. package/dist/v1/investigation/index.d.ts.map +1 -1
  20. package/dist/v1/investigation/index.js +0 -2
  21. package/dist/v1/investigation/index.js.map +1 -1
  22. package/dist/v1/issue/addFlows.d.ts +1 -1
  23. package/dist/v1/issue/create.d.ts +1 -1
  24. package/dist/v1/issue/index.d.ts +5 -5
  25. package/dist/v1/issue/removeFlows.d.ts +1 -1
  26. package/dist/v1/issue/update.d.ts +2 -2
  27. package/dist/v1/legacyTrigger/find.d.ts +4 -0
  28. package/dist/v1/legacyTrigger/find.d.ts.map +1 -1
  29. package/dist/v1/legacyTrigger/index.d.ts +4 -0
  30. package/dist/v1/legacyTrigger/index.d.ts.map +1 -1
  31. package/dist/v1/legacyTrigger/resource.d.ts +4 -0
  32. package/dist/v1/legacyTrigger/resource.d.ts.map +1 -1
  33. package/dist/v1/legacyTrigger/resource.js +6 -0
  34. package/dist/v1/legacyTrigger/resource.js.map +1 -1
  35. package/dist/v1/mcpToolDescription.d.ts.map +1 -1
  36. package/dist/v1/mcpToolDescription.js +0 -1
  37. package/dist/v1/mcpToolDescription.js.map +1 -1
  38. package/dist/v1/run/diagnose.d.ts +1 -1
  39. package/dist/v1/run/find.d.ts +2 -2
  40. package/dist/v1/run/get.d.ts +6 -6
  41. package/dist/v1/run/summary.d.ts +2 -2
  42. package/dist/v1/sharedSchemas.d.ts +2 -0
  43. package/dist/v1/sharedSchemas.d.ts.map +1 -1
  44. package/dist/v1/sharedSchemas.js +2 -0
  45. package/dist/v1/sharedSchemas.js.map +1 -1
  46. package/dist/v1/trigger/configuration.js +1 -1
  47. package/dist/v1/trigger/configuration.js.map +1 -1
  48. package/dist/v1/trigger/configurationRules.d.ts.map +1 -1
  49. package/dist/v1/trigger/configurationRules.js +4 -18
  50. package/dist/v1/trigger/configurationRules.js.map +1 -1
  51. package/package.json +1 -1
  52. package/dist/v1/investigation/findingInputFields.d.ts +0 -14
  53. package/dist/v1/investigation/findingInputFields.d.ts.map +0 -1
  54. package/dist/v1/investigation/findingInputFields.js +0 -46
  55. package/dist/v1/investigation/findingInputFields.js.map +0 -1
  56. package/dist/v1/investigation/recordFinding.d.ts +0 -153
  57. package/dist/v1/investigation/recordFinding.d.ts.map +0 -1
  58. package/dist/v1/investigation/recordFinding.js +0 -112
  59. package/dist/v1/investigation/recordFinding.js.map +0 -1
  60. package/dist/v1/run/triage.d.ts +0 -51
  61. package/dist/v1/run/triage.d.ts.map +0 -1
  62. package/dist/v1/run/triage.js +0 -55
  63. package/dist/v1/run/triage.js.map +0 -1
@@ -585,10 +585,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
585
585
  name: z.ZodString;
586
586
  runConcurrencyLimit: z.ZodString;
587
587
  status: z.ZodEnum<{
588
+ running: "running";
588
589
  blocked: "blocked";
589
590
  "needs-investigation": "needs-investigation";
590
591
  ready: "ready";
591
- running: "running";
592
592
  }>;
593
593
  terminatedAt: z.ZodOptional<z.ZodISODateTime>;
594
594
  variablesUrl: z.ZodOptional<z.ZodURL>;
@@ -653,10 +653,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
653
653
  name: z.ZodString;
654
654
  runConcurrencyLimit: z.ZodString;
655
655
  status: z.ZodEnum<{
656
+ running: "running";
656
657
  blocked: "blocked";
657
658
  "needs-investigation": "needs-investigation";
658
659
  ready: "ready";
659
- running: "running";
660
660
  }>;
661
661
  terminatedAt: z.ZodOptional<z.ZodISODateTime>;
662
662
  variablesUrl: z.ZodOptional<z.ZodURL>;
@@ -697,10 +697,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
697
697
  name: z.ZodString;
698
698
  runConcurrencyLimit: z.ZodString;
699
699
  status: z.ZodEnum<{
700
+ running: "running";
700
701
  blocked: "blocked";
701
702
  "needs-investigation": "needs-investigation";
702
703
  ready: "ready";
703
- running: "running";
704
704
  }>;
705
705
  terminatedAt: z.ZodOptional<z.ZodISODateTime>;
706
706
  variablesUrl: z.ZodOptional<z.ZodURL>;
@@ -799,10 +799,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
799
799
  name: z.ZodString;
800
800
  runConcurrencyLimit: z.ZodString;
801
801
  status: z.ZodEnum<{
802
+ running: "running";
802
803
  blocked: "blocked";
803
804
  "needs-investigation": "needs-investigation";
804
805
  ready: "ready";
805
- running: "running";
806
806
  }>;
807
807
  terminatedAt: z.ZodOptional<z.ZodISODateTime>;
808
808
  variablesUrl: z.ZodOptional<z.ZodURL>;
@@ -1039,150 +1039,6 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1039
1039
  url: z.ZodURL;
1040
1040
  }, z.core.$strip>;
1041
1041
  };
1042
- recordFinding: {
1043
- readonly annotations: {
1044
- readonly destructiveHint: true;
1045
- readonly openWorldHint: false;
1046
- readonly readOnlyHint: false;
1047
- };
1048
- readonly description: string;
1049
- readonly input: z.ZodDiscriminatedUnion<[z.ZodObject<{
1050
- headline: z.ZodOptional<z.ZodString>;
1051
- state: z.ZodLiteral<"investigating">;
1052
- summary: z.ZodOptional<z.ZodString>;
1053
- findingId: z.ZodString;
1054
- flowIds: z.ZodArray<FlowId>;
1055
- runId: RunId;
1056
- sessionId: ChatSessionId;
1057
- subSessionIds: z.ZodOptional<z.ZodArray<ChatSessionId>>;
1058
- }, z.core.$strip>, z.ZodObject<{
1059
- commitHash: z.ZodString;
1060
- headline: z.ZodString;
1061
- state: z.ZodLiteral<"fixed">;
1062
- summary: z.ZodString;
1063
- findingId: z.ZodString;
1064
- flowIds: z.ZodArray<FlowId>;
1065
- runId: RunId;
1066
- sessionId: ChatSessionId;
1067
- subSessionIds: z.ZodOptional<z.ZodArray<ChatSessionId>>;
1068
- }, z.core.$strip>, z.ZodObject<{
1069
- commitHash: z.ZodString;
1070
- headline: z.ZodString;
1071
- question: z.ZodOptional<z.ZodString>;
1072
- state: z.ZodLiteral<"fix-proposed">;
1073
- summary: z.ZodString;
1074
- findingId: z.ZodString;
1075
- flowIds: z.ZodArray<FlowId>;
1076
- runId: RunId;
1077
- sessionId: ChatSessionId;
1078
- subSessionIds: z.ZodOptional<z.ZodArray<ChatSessionId>>;
1079
- }, z.core.$strip>, z.ZodObject<{
1080
- headline: z.ZodString;
1081
- issueId: IssueId;
1082
- matchReason: z.ZodOptional<z.ZodString>;
1083
- state: z.ZodLiteral<"reported">;
1084
- summary: z.ZodString;
1085
- actual: z.ZodString;
1086
- expected: z.ZodString;
1087
- steps: z.ZodArray<z.ZodString>;
1088
- findingId: z.ZodString;
1089
- flowIds: z.ZodArray<FlowId>;
1090
- runId: RunId;
1091
- sessionId: ChatSessionId;
1092
- subSessionIds: z.ZodOptional<z.ZodArray<ChatSessionId>>;
1093
- }, z.core.$strip>, z.ZodObject<{
1094
- headline: z.ZodString;
1095
- issueId: z.ZodOptional<IssueId>;
1096
- matchReason: z.ZodOptional<z.ZodString>;
1097
- priority: z.ZodEnum<{
1098
- unprioritized: "unprioritized";
1099
- low: "low";
1100
- medium: "medium";
1101
- high: "high";
1102
- urgent: "urgent";
1103
- }>;
1104
- question: z.ZodOptional<z.ZodString>;
1105
- state: z.ZodLiteral<"report-proposed">;
1106
- summary: z.ZodString;
1107
- actual: z.ZodString;
1108
- expected: z.ZodString;
1109
- steps: z.ZodArray<z.ZodString>;
1110
- findingId: z.ZodString;
1111
- flowIds: z.ZodArray<FlowId>;
1112
- runId: RunId;
1113
- sessionId: ChatSessionId;
1114
- subSessionIds: z.ZodOptional<z.ZodArray<ChatSessionId>>;
1115
- }, z.core.$strip>, z.ZodObject<{
1116
- headline: z.ZodString;
1117
- state: z.ZodLiteral<"flake">;
1118
- summary: z.ZodString;
1119
- findingId: z.ZodString;
1120
- flowIds: z.ZodArray<FlowId>;
1121
- runId: RunId;
1122
- sessionId: ChatSessionId;
1123
- subSessionIds: z.ZodOptional<z.ZodArray<ChatSessionId>>;
1124
- }, z.core.$strip>, z.ZodObject<{
1125
- bugAnswer: z.ZodString;
1126
- bugAnswerDescription: z.ZodOptional<z.ZodString>;
1127
- headline: z.ZodString;
1128
- maintenanceAnswer: z.ZodString;
1129
- maintenanceAnswerDescription: z.ZodOptional<z.ZodString>;
1130
- question: z.ZodString;
1131
- state: z.ZodLiteral<"question">;
1132
- summary: z.ZodString;
1133
- findingId: z.ZodString;
1134
- flowIds: z.ZodArray<FlowId>;
1135
- runId: RunId;
1136
- sessionId: ChatSessionId;
1137
- subSessionIds: z.ZodOptional<z.ZodArray<ChatSessionId>>;
1138
- }, z.core.$strip>], "state">;
1139
- readonly kind: "write";
1140
- readonly name: "investigation.recordFinding";
1141
- readonly output: z.ZodObject<{
1142
- finding: z.ZodObject<{
1143
- actual: z.ZodOptional<z.ZodString>;
1144
- commitHash: z.ZodOptional<z.ZodString>;
1145
- decidedBy: z.ZodOptional<z.ZodEnum<{
1146
- user: "user";
1147
- agent: "agent";
1148
- }>>;
1149
- disputeReason: z.ZodOptional<z.ZodString>;
1150
- expected: z.ZodOptional<z.ZodString>;
1151
- findingId: z.ZodString;
1152
- flowIds: z.ZodArray<FlowId>;
1153
- headline: z.ZodOptional<z.ZodString>;
1154
- issueId: z.ZodOptional<IssueId>;
1155
- kind: z.ZodString;
1156
- matchReason: z.ZodOptional<z.ZodString>;
1157
- priority: z.ZodOptional<z.ZodEnum<{
1158
- unprioritized: "unprioritized";
1159
- low: "low";
1160
- medium: "medium";
1161
- high: "high";
1162
- urgent: "urgent";
1163
- }>>;
1164
- question: z.ZodOptional<z.ZodObject<{
1165
- answers: z.ZodArray<z.ZodObject<{
1166
- description: z.ZodOptional<z.ZodString>;
1167
- title: z.ZodString;
1168
- value: z.ZodString;
1169
- }, z.core.$strip>>;
1170
- text: z.ZodString;
1171
- }, z.core.$strip>>;
1172
- response: z.ZodOptional<z.ZodObject<{
1173
- answer: z.ZodOptional<z.ZodString>;
1174
- at: z.ZodISODateTime;
1175
- reason: z.ZodOptional<z.ZodString>;
1176
- type: z.ZodString;
1177
- }, z.core.$strip>>;
1178
- state: z.ZodString;
1179
- steps: z.ZodOptional<z.ZodArray<z.ZodString>>;
1180
- subSessionIds: z.ZodArray<ChatSessionId>;
1181
- summary: z.ZodOptional<z.ZodString>;
1182
- updatedAt: z.ZodISODateTime;
1183
- }, z.core.$strip>;
1184
- }, z.core.$strip>;
1185
- };
1186
1042
  };
1187
1043
  issue: {
1188
1044
  addFlows: {
@@ -1221,11 +1077,11 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1221
1077
  lastReproducedInRunId: RunId;
1222
1078
  }, z.core.$strip>>;
1223
1079
  status: z.ZodEnum<{
1080
+ canceled: "canceled";
1224
1081
  pending: "pending";
1225
1082
  inProgress: "inProgress";
1226
1083
  paused: "paused";
1227
1084
  resolved: "resolved";
1228
- canceled: "canceled";
1229
1085
  archived: "archived";
1230
1086
  }>;
1231
1087
  type: z.ZodEnum<{
@@ -1295,11 +1151,11 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1295
1151
  lastReproducedInRunId: RunId;
1296
1152
  }, z.core.$strip>>;
1297
1153
  status: z.ZodEnum<{
1154
+ canceled: "canceled";
1298
1155
  pending: "pending";
1299
1156
  inProgress: "inProgress";
1300
1157
  paused: "paused";
1301
1158
  resolved: "resolved";
1302
- canceled: "canceled";
1303
1159
  archived: "archived";
1304
1160
  }>;
1305
1161
  type: z.ZodEnum<{
@@ -1320,11 +1176,11 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1320
1176
  readonly description: "List the team's bug reports, maintenance reports, or coverage requests, newest first.";
1321
1177
  readonly input: z.ZodObject<{
1322
1178
  statuses: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1179
+ canceled: "canceled";
1323
1180
  pending: "pending";
1324
1181
  inProgress: "inProgress";
1325
1182
  paused: "paused";
1326
1183
  resolved: "resolved";
1327
- canceled: "canceled";
1328
1184
  archived: "archived";
1329
1185
  }>>>;
1330
1186
  type: z.ZodEnum<{
@@ -1361,11 +1217,11 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1361
1217
  lastReproducedInRunId: RunId;
1362
1218
  }, z.core.$strip>>;
1363
1219
  status: z.ZodEnum<{
1220
+ canceled: "canceled";
1364
1221
  pending: "pending";
1365
1222
  inProgress: "inProgress";
1366
1223
  paused: "paused";
1367
1224
  resolved: "resolved";
1368
- canceled: "canceled";
1369
1225
  archived: "archived";
1370
1226
  }>;
1371
1227
  type: z.ZodEnum<{
@@ -1413,11 +1269,11 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1413
1269
  lastReproducedInRunId: RunId;
1414
1270
  }, z.core.$strip>>;
1415
1271
  status: z.ZodEnum<{
1272
+ canceled: "canceled";
1416
1273
  pending: "pending";
1417
1274
  inProgress: "inProgress";
1418
1275
  paused: "paused";
1419
1276
  resolved: "resolved";
1420
- canceled: "canceled";
1421
1277
  archived: "archived";
1422
1278
  }>;
1423
1279
  type: z.ZodEnum<{
@@ -1465,11 +1321,11 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1465
1321
  lastReproducedInRunId: RunId;
1466
1322
  }, z.core.$strip>>;
1467
1323
  status: z.ZodEnum<{
1324
+ canceled: "canceled";
1468
1325
  pending: "pending";
1469
1326
  inProgress: "inProgress";
1470
1327
  paused: "paused";
1471
1328
  resolved: "resolved";
1472
- canceled: "canceled";
1473
1329
  archived: "archived";
1474
1330
  }>;
1475
1331
  type: z.ZodEnum<{
@@ -1500,11 +1356,11 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1500
1356
  urgent: "urgent";
1501
1357
  }>>;
1502
1358
  status: z.ZodOptional<z.ZodEnum<{
1359
+ canceled: "canceled";
1503
1360
  pending: "pending";
1504
1361
  inProgress: "inProgress";
1505
1362
  paused: "paused";
1506
1363
  resolved: "resolved";
1507
- canceled: "canceled";
1508
1364
  archived: "archived";
1509
1365
  }>>;
1510
1366
  }, z.core.$strip>;
@@ -1533,11 +1389,11 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1533
1389
  lastReproducedInRunId: RunId;
1534
1390
  }, z.core.$strip>>;
1535
1391
  status: z.ZodEnum<{
1392
+ canceled: "canceled";
1536
1393
  pending: "pending";
1537
1394
  inProgress: "inProgress";
1538
1395
  paused: "paused";
1539
1396
  resolved: "resolved";
1540
- canceled: "canceled";
1541
1397
  archived: "archived";
1542
1398
  }>;
1543
1399
  type: z.ZodEnum<{
@@ -1588,6 +1444,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1588
1444
  isPaused: z.ZodBoolean;
1589
1445
  name: z.ZodString;
1590
1446
  pausedAt: z.ZodOptional<z.ZodISODateTime>;
1447
+ runConcurrencyLimit: z.ZodString;
1448
+ shouldTriage: z.ZodBoolean;
1591
1449
  tags: z.ZodArray<z.ZodObject<{
1592
1450
  id: z.ZodString;
1593
1451
  name: z.ZodString;
@@ -1626,6 +1484,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1626
1484
  isPaused: z.ZodBoolean;
1627
1485
  name: z.ZodString;
1628
1486
  pausedAt: z.ZodOptional<z.ZodISODateTime>;
1487
+ runConcurrencyLimit: z.ZodString;
1488
+ shouldTriage: z.ZodBoolean;
1629
1489
  tags: z.ZodArray<z.ZodObject<{
1630
1490
  id: z.ZodString;
1631
1491
  name: z.ZodString;
@@ -1746,11 +1606,11 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1746
1606
  lastReproducedInRunId: RunId;
1747
1607
  }, z.core.$strip>>;
1748
1608
  status: z.ZodEnum<{
1609
+ canceled: "canceled";
1749
1610
  pending: "pending";
1750
1611
  inProgress: "inProgress";
1751
1612
  paused: "paused";
1752
1613
  resolved: "resolved";
1753
- canceled: "canceled";
1754
1614
  archived: "archived";
1755
1615
  }>;
1756
1616
  type: z.ZodEnum<{
@@ -1792,10 +1652,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1792
1652
  runId: RunId;
1793
1653
  status: z.ZodEnum<{
1794
1654
  failed: "failed";
1795
- running: "running";
1796
- canceled: "canceled";
1797
1655
  queued: "queued";
1656
+ running: "running";
1798
1657
  passed: "passed";
1658
+ canceled: "canceled";
1799
1659
  }>;
1800
1660
  url: z.ZodURL;
1801
1661
  }, z.core.$strip>>;
@@ -1811,10 +1671,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1811
1671
  readonly input: z.ZodObject<{
1812
1672
  flowStatuses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1813
1673
  failed: "failed";
1814
- running: "running";
1815
- canceled: "canceled";
1816
1674
  queued: "queued";
1675
+ running: "running";
1817
1676
  passed: "passed";
1677
+ canceled: "canceled";
1818
1678
  }>>>;
1819
1679
  runId: RunId;
1820
1680
  }, z.core.$strip>;
@@ -1894,10 +1754,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1894
1754
  flowId: FlowId;
1895
1755
  name: z.ZodString;
1896
1756
  status: z.ZodEnum<{
1897
- running: "running";
1898
- canceled: "canceled";
1899
1757
  queued: "queued";
1758
+ running: "running";
1900
1759
  passed: "passed";
1760
+ canceled: "canceled";
1901
1761
  }>;
1902
1762
  }, z.core.$strip>], "status">>;
1903
1763
  runId: RunId;
@@ -1911,10 +1771,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1911
1771
  }, z.core.$strip>;
1912
1772
  status: z.ZodEnum<{
1913
1773
  failed: "failed";
1914
- running: "running";
1915
- canceled: "canceled";
1916
1774
  queued: "queued";
1775
+ running: "running";
1917
1776
  passed: "passed";
1777
+ canceled: "canceled";
1918
1778
  }>;
1919
1779
  url: z.ZodURL;
1920
1780
  }, z.core.$strip>;
@@ -1960,50 +1820,6 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1960
1820
  url: z.ZodURL;
1961
1821
  }, z.core.$strip>;
1962
1822
  };
1963
- triage: {
1964
- readonly annotations: {
1965
- readonly destructiveHint: false;
1966
- readonly openWorldHint: false;
1967
- readonly readOnlyHint: true;
1968
- };
1969
- readonly description: string;
1970
- readonly input: z.ZodObject<{
1971
- flowId: FlowId;
1972
- runId: RunId;
1973
- }, z.core.$strip>;
1974
- readonly kind: "read";
1975
- readonly name: "run.triage";
1976
- readonly output: z.ZodObject<{
1977
- answers: z.ZodObject<{
1978
- verdict: z.ZodObject<{
1979
- choice: z.ZodEnum<{
1980
- bug: "bug";
1981
- maintenance: "maintenance";
1982
- }>;
1983
- confidence: z.ZodNumber;
1984
- probabilities: z.ZodRecord<z.ZodString, z.ZodNumber>;
1985
- type: z.ZodLiteral<"choice">;
1986
- }, z.core.$strip>;
1987
- }, z.core.$strip>;
1988
- decision: z.ZodDiscriminatedUnion<[z.ZodObject<{
1989
- diagnosis: z.ZodEnum<{
1990
- bug: "bug";
1991
- maintenance: "maintenance";
1992
- }>;
1993
- type: z.ZodLiteral<"diagnose">;
1994
- }, z.core.$strip>, z.ZodObject<{
1995
- diagnosis: z.ZodEnum<{
1996
- bug: "bug";
1997
- maintenance: "maintenance";
1998
- }>;
1999
- type: z.ZodLiteral<"suggest">;
2000
- }, z.core.$strip>, z.ZodObject<{
2001
- type: z.ZodLiteral<"needsHuman">;
2002
- }, z.core.$strip>], "type">;
2003
- model: z.ZodString;
2004
- state: z.ZodJSONSchema;
2005
- }, z.core.$strip>;
2006
- };
2007
1823
  };
2008
1824
  runner: {
2009
1825
  runFlow: {
@@ -4252,10 +4068,10 @@ export declare const publicContractsV1: {
4252
4068
  name: z.ZodString;
4253
4069
  runConcurrencyLimit: z.ZodString;
4254
4070
  status: z.ZodEnum<{
4071
+ running: "running";
4255
4072
  blocked: "blocked";
4256
4073
  "needs-investigation": "needs-investigation";
4257
4074
  ready: "ready";
4258
- running: "running";
4259
4075
  }>;
4260
4076
  terminatedAt: z.ZodOptional<z.ZodISODateTime>;
4261
4077
  variablesUrl: z.ZodOptional<z.ZodURL>;
@@ -4320,10 +4136,10 @@ export declare const publicContractsV1: {
4320
4136
  name: z.ZodString;
4321
4137
  runConcurrencyLimit: z.ZodString;
4322
4138
  status: z.ZodEnum<{
4139
+ running: "running";
4323
4140
  blocked: "blocked";
4324
4141
  "needs-investigation": "needs-investigation";
4325
4142
  ready: "ready";
4326
- running: "running";
4327
4143
  }>;
4328
4144
  terminatedAt: z.ZodOptional<z.ZodISODateTime>;
4329
4145
  variablesUrl: z.ZodOptional<z.ZodURL>;
@@ -4364,10 +4180,10 @@ export declare const publicContractsV1: {
4364
4180
  name: z.ZodString;
4365
4181
  runConcurrencyLimit: z.ZodString;
4366
4182
  status: z.ZodEnum<{
4183
+ running: "running";
4367
4184
  blocked: "blocked";
4368
4185
  "needs-investigation": "needs-investigation";
4369
4186
  ready: "ready";
4370
- running: "running";
4371
4187
  }>;
4372
4188
  terminatedAt: z.ZodOptional<z.ZodISODateTime>;
4373
4189
  variablesUrl: z.ZodOptional<z.ZodURL>;
@@ -4466,10 +4282,10 @@ export declare const publicContractsV1: {
4466
4282
  name: z.ZodString;
4467
4283
  runConcurrencyLimit: z.ZodString;
4468
4284
  status: z.ZodEnum<{
4285
+ running: "running";
4469
4286
  blocked: "blocked";
4470
4287
  "needs-investigation": "needs-investigation";
4471
4288
  ready: "ready";
4472
- running: "running";
4473
4289
  }>;
4474
4290
  terminatedAt: z.ZodOptional<z.ZodISODateTime>;
4475
4291
  variablesUrl: z.ZodOptional<z.ZodURL>;
@@ -4706,150 +4522,6 @@ export declare const publicContractsV1: {
4706
4522
  url: z.ZodURL;
4707
4523
  }, z.core.$strip>;
4708
4524
  };
4709
- recordFinding: {
4710
- readonly annotations: {
4711
- readonly destructiveHint: true;
4712
- readonly openWorldHint: false;
4713
- readonly readOnlyHint: false;
4714
- };
4715
- readonly description: string;
4716
- readonly input: z.ZodDiscriminatedUnion<[z.ZodObject<{
4717
- headline: z.ZodOptional<z.ZodString>;
4718
- state: z.ZodLiteral<"investigating">;
4719
- summary: z.ZodOptional<z.ZodString>;
4720
- findingId: z.ZodString;
4721
- flowIds: z.ZodArray<PublicIdSchema>;
4722
- runId: PublicIdSchema;
4723
- sessionId: PublicIdSchema;
4724
- subSessionIds: z.ZodOptional<z.ZodArray<PublicIdSchema>>;
4725
- }, z.core.$strip>, z.ZodObject<{
4726
- commitHash: z.ZodString;
4727
- headline: z.ZodString;
4728
- state: z.ZodLiteral<"fixed">;
4729
- summary: z.ZodString;
4730
- findingId: z.ZodString;
4731
- flowIds: z.ZodArray<PublicIdSchema>;
4732
- runId: PublicIdSchema;
4733
- sessionId: PublicIdSchema;
4734
- subSessionIds: z.ZodOptional<z.ZodArray<PublicIdSchema>>;
4735
- }, z.core.$strip>, z.ZodObject<{
4736
- commitHash: z.ZodString;
4737
- headline: z.ZodString;
4738
- question: z.ZodOptional<z.ZodString>;
4739
- state: z.ZodLiteral<"fix-proposed">;
4740
- summary: z.ZodString;
4741
- findingId: z.ZodString;
4742
- flowIds: z.ZodArray<PublicIdSchema>;
4743
- runId: PublicIdSchema;
4744
- sessionId: PublicIdSchema;
4745
- subSessionIds: z.ZodOptional<z.ZodArray<PublicIdSchema>>;
4746
- }, z.core.$strip>, z.ZodObject<{
4747
- headline: z.ZodString;
4748
- issueId: PublicIdSchema;
4749
- matchReason: z.ZodOptional<z.ZodString>;
4750
- state: z.ZodLiteral<"reported">;
4751
- summary: z.ZodString;
4752
- actual: z.ZodString;
4753
- expected: z.ZodString;
4754
- steps: z.ZodArray<z.ZodString>;
4755
- findingId: z.ZodString;
4756
- flowIds: z.ZodArray<PublicIdSchema>;
4757
- runId: PublicIdSchema;
4758
- sessionId: PublicIdSchema;
4759
- subSessionIds: z.ZodOptional<z.ZodArray<PublicIdSchema>>;
4760
- }, z.core.$strip>, z.ZodObject<{
4761
- headline: z.ZodString;
4762
- issueId: z.ZodOptional<PublicIdSchema>;
4763
- matchReason: z.ZodOptional<z.ZodString>;
4764
- priority: z.ZodEnum<{
4765
- unprioritized: "unprioritized";
4766
- low: "low";
4767
- medium: "medium";
4768
- high: "high";
4769
- urgent: "urgent";
4770
- }>;
4771
- question: z.ZodOptional<z.ZodString>;
4772
- state: z.ZodLiteral<"report-proposed">;
4773
- summary: z.ZodString;
4774
- actual: z.ZodString;
4775
- expected: z.ZodString;
4776
- steps: z.ZodArray<z.ZodString>;
4777
- findingId: z.ZodString;
4778
- flowIds: z.ZodArray<PublicIdSchema>;
4779
- runId: PublicIdSchema;
4780
- sessionId: PublicIdSchema;
4781
- subSessionIds: z.ZodOptional<z.ZodArray<PublicIdSchema>>;
4782
- }, z.core.$strip>, z.ZodObject<{
4783
- headline: z.ZodString;
4784
- state: z.ZodLiteral<"flake">;
4785
- summary: z.ZodString;
4786
- findingId: z.ZodString;
4787
- flowIds: z.ZodArray<PublicIdSchema>;
4788
- runId: PublicIdSchema;
4789
- sessionId: PublicIdSchema;
4790
- subSessionIds: z.ZodOptional<z.ZodArray<PublicIdSchema>>;
4791
- }, z.core.$strip>, z.ZodObject<{
4792
- bugAnswer: z.ZodString;
4793
- bugAnswerDescription: z.ZodOptional<z.ZodString>;
4794
- headline: z.ZodString;
4795
- maintenanceAnswer: z.ZodString;
4796
- maintenanceAnswerDescription: z.ZodOptional<z.ZodString>;
4797
- question: z.ZodString;
4798
- state: z.ZodLiteral<"question">;
4799
- summary: z.ZodString;
4800
- findingId: z.ZodString;
4801
- flowIds: z.ZodArray<PublicIdSchema>;
4802
- runId: PublicIdSchema;
4803
- sessionId: PublicIdSchema;
4804
- subSessionIds: z.ZodOptional<z.ZodArray<PublicIdSchema>>;
4805
- }, z.core.$strip>], "state">;
4806
- readonly kind: "write";
4807
- readonly name: "investigation.recordFinding";
4808
- readonly output: z.ZodObject<{
4809
- finding: z.ZodObject<{
4810
- actual: z.ZodOptional<z.ZodString>;
4811
- commitHash: z.ZodOptional<z.ZodString>;
4812
- decidedBy: z.ZodOptional<z.ZodEnum<{
4813
- user: "user";
4814
- agent: "agent";
4815
- }>>;
4816
- disputeReason: z.ZodOptional<z.ZodString>;
4817
- expected: z.ZodOptional<z.ZodString>;
4818
- findingId: z.ZodString;
4819
- flowIds: z.ZodArray<PublicIdSchema>;
4820
- headline: z.ZodOptional<z.ZodString>;
4821
- issueId: z.ZodOptional<PublicIdSchema>;
4822
- kind: z.ZodString;
4823
- matchReason: z.ZodOptional<z.ZodString>;
4824
- priority: z.ZodOptional<z.ZodEnum<{
4825
- unprioritized: "unprioritized";
4826
- low: "low";
4827
- medium: "medium";
4828
- high: "high";
4829
- urgent: "urgent";
4830
- }>>;
4831
- question: z.ZodOptional<z.ZodObject<{
4832
- answers: z.ZodArray<z.ZodObject<{
4833
- description: z.ZodOptional<z.ZodString>;
4834
- title: z.ZodString;
4835
- value: z.ZodString;
4836
- }, z.core.$strip>>;
4837
- text: z.ZodString;
4838
- }, z.core.$strip>>;
4839
- response: z.ZodOptional<z.ZodObject<{
4840
- answer: z.ZodOptional<z.ZodString>;
4841
- at: z.ZodISODateTime;
4842
- reason: z.ZodOptional<z.ZodString>;
4843
- type: z.ZodString;
4844
- }, z.core.$strip>>;
4845
- state: z.ZodString;
4846
- steps: z.ZodOptional<z.ZodArray<z.ZodString>>;
4847
- subSessionIds: z.ZodArray<PublicIdSchema>;
4848
- summary: z.ZodOptional<z.ZodString>;
4849
- updatedAt: z.ZodISODateTime;
4850
- }, z.core.$strip>;
4851
- }, z.core.$strip>;
4852
- };
4853
4525
  };
4854
4526
  issue: {
4855
4527
  addFlows: {
@@ -4888,11 +4560,11 @@ export declare const publicContractsV1: {
4888
4560
  lastReproducedInRunId: PublicIdSchema;
4889
4561
  }, z.core.$strip>>;
4890
4562
  status: z.ZodEnum<{
4563
+ canceled: "canceled";
4891
4564
  pending: "pending";
4892
4565
  inProgress: "inProgress";
4893
4566
  paused: "paused";
4894
4567
  resolved: "resolved";
4895
- canceled: "canceled";
4896
4568
  archived: "archived";
4897
4569
  }>;
4898
4570
  type: z.ZodEnum<{
@@ -4962,11 +4634,11 @@ export declare const publicContractsV1: {
4962
4634
  lastReproducedInRunId: PublicIdSchema;
4963
4635
  }, z.core.$strip>>;
4964
4636
  status: z.ZodEnum<{
4637
+ canceled: "canceled";
4965
4638
  pending: "pending";
4966
4639
  inProgress: "inProgress";
4967
4640
  paused: "paused";
4968
4641
  resolved: "resolved";
4969
- canceled: "canceled";
4970
4642
  archived: "archived";
4971
4643
  }>;
4972
4644
  type: z.ZodEnum<{
@@ -4987,11 +4659,11 @@ export declare const publicContractsV1: {
4987
4659
  readonly description: "List the team's bug reports, maintenance reports, or coverage requests, newest first.";
4988
4660
  readonly input: z.ZodObject<{
4989
4661
  statuses: z.ZodDefault<z.ZodArray<z.ZodEnum<{
4662
+ canceled: "canceled";
4990
4663
  pending: "pending";
4991
4664
  inProgress: "inProgress";
4992
4665
  paused: "paused";
4993
4666
  resolved: "resolved";
4994
- canceled: "canceled";
4995
4667
  archived: "archived";
4996
4668
  }>>>;
4997
4669
  type: z.ZodEnum<{
@@ -5028,11 +4700,11 @@ export declare const publicContractsV1: {
5028
4700
  lastReproducedInRunId: PublicIdSchema;
5029
4701
  }, z.core.$strip>>;
5030
4702
  status: z.ZodEnum<{
4703
+ canceled: "canceled";
5031
4704
  pending: "pending";
5032
4705
  inProgress: "inProgress";
5033
4706
  paused: "paused";
5034
4707
  resolved: "resolved";
5035
- canceled: "canceled";
5036
4708
  archived: "archived";
5037
4709
  }>;
5038
4710
  type: z.ZodEnum<{
@@ -5080,11 +4752,11 @@ export declare const publicContractsV1: {
5080
4752
  lastReproducedInRunId: PublicIdSchema;
5081
4753
  }, z.core.$strip>>;
5082
4754
  status: z.ZodEnum<{
4755
+ canceled: "canceled";
5083
4756
  pending: "pending";
5084
4757
  inProgress: "inProgress";
5085
4758
  paused: "paused";
5086
4759
  resolved: "resolved";
5087
- canceled: "canceled";
5088
4760
  archived: "archived";
5089
4761
  }>;
5090
4762
  type: z.ZodEnum<{
@@ -5132,11 +4804,11 @@ export declare const publicContractsV1: {
5132
4804
  lastReproducedInRunId: PublicIdSchema;
5133
4805
  }, z.core.$strip>>;
5134
4806
  status: z.ZodEnum<{
4807
+ canceled: "canceled";
5135
4808
  pending: "pending";
5136
4809
  inProgress: "inProgress";
5137
4810
  paused: "paused";
5138
4811
  resolved: "resolved";
5139
- canceled: "canceled";
5140
4812
  archived: "archived";
5141
4813
  }>;
5142
4814
  type: z.ZodEnum<{
@@ -5167,11 +4839,11 @@ export declare const publicContractsV1: {
5167
4839
  urgent: "urgent";
5168
4840
  }>>;
5169
4841
  status: z.ZodOptional<z.ZodEnum<{
4842
+ canceled: "canceled";
5170
4843
  pending: "pending";
5171
4844
  inProgress: "inProgress";
5172
4845
  paused: "paused";
5173
4846
  resolved: "resolved";
5174
- canceled: "canceled";
5175
4847
  archived: "archived";
5176
4848
  }>>;
5177
4849
  }, z.core.$strip>;
@@ -5200,11 +4872,11 @@ export declare const publicContractsV1: {
5200
4872
  lastReproducedInRunId: PublicIdSchema;
5201
4873
  }, z.core.$strip>>;
5202
4874
  status: z.ZodEnum<{
4875
+ canceled: "canceled";
5203
4876
  pending: "pending";
5204
4877
  inProgress: "inProgress";
5205
4878
  paused: "paused";
5206
4879
  resolved: "resolved";
5207
- canceled: "canceled";
5208
4880
  archived: "archived";
5209
4881
  }>;
5210
4882
  type: z.ZodEnum<{
@@ -5255,6 +4927,8 @@ export declare const publicContractsV1: {
5255
4927
  isPaused: z.ZodBoolean;
5256
4928
  name: z.ZodString;
5257
4929
  pausedAt: z.ZodOptional<z.ZodISODateTime>;
4930
+ runConcurrencyLimit: z.ZodString;
4931
+ shouldTriage: z.ZodBoolean;
5258
4932
  tags: z.ZodArray<z.ZodObject<{
5259
4933
  id: z.ZodString;
5260
4934
  name: z.ZodString;
@@ -5293,6 +4967,8 @@ export declare const publicContractsV1: {
5293
4967
  isPaused: z.ZodBoolean;
5294
4968
  name: z.ZodString;
5295
4969
  pausedAt: z.ZodOptional<z.ZodISODateTime>;
4970
+ runConcurrencyLimit: z.ZodString;
4971
+ shouldTriage: z.ZodBoolean;
5296
4972
  tags: z.ZodArray<z.ZodObject<{
5297
4973
  id: z.ZodString;
5298
4974
  name: z.ZodString;
@@ -5413,11 +5089,11 @@ export declare const publicContractsV1: {
5413
5089
  lastReproducedInRunId: PublicIdSchema;
5414
5090
  }, z.core.$strip>>;
5415
5091
  status: z.ZodEnum<{
5092
+ canceled: "canceled";
5416
5093
  pending: "pending";
5417
5094
  inProgress: "inProgress";
5418
5095
  paused: "paused";
5419
5096
  resolved: "resolved";
5420
- canceled: "canceled";
5421
5097
  archived: "archived";
5422
5098
  }>;
5423
5099
  type: z.ZodEnum<{
@@ -5459,10 +5135,10 @@ export declare const publicContractsV1: {
5459
5135
  runId: PublicIdSchema;
5460
5136
  status: z.ZodEnum<{
5461
5137
  failed: "failed";
5462
- running: "running";
5463
- canceled: "canceled";
5464
5138
  queued: "queued";
5139
+ running: "running";
5465
5140
  passed: "passed";
5141
+ canceled: "canceled";
5466
5142
  }>;
5467
5143
  url: z.ZodURL;
5468
5144
  }, z.core.$strip>>;
@@ -5478,10 +5154,10 @@ export declare const publicContractsV1: {
5478
5154
  readonly input: z.ZodObject<{
5479
5155
  flowStatuses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5480
5156
  failed: "failed";
5481
- running: "running";
5482
- canceled: "canceled";
5483
5157
  queued: "queued";
5158
+ running: "running";
5484
5159
  passed: "passed";
5160
+ canceled: "canceled";
5485
5161
  }>>>;
5486
5162
  runId: PublicIdSchema;
5487
5163
  }, z.core.$strip>;
@@ -5561,10 +5237,10 @@ export declare const publicContractsV1: {
5561
5237
  flowId: PublicIdSchema;
5562
5238
  name: z.ZodString;
5563
5239
  status: z.ZodEnum<{
5564
- running: "running";
5565
- canceled: "canceled";
5566
5240
  queued: "queued";
5241
+ running: "running";
5567
5242
  passed: "passed";
5243
+ canceled: "canceled";
5568
5244
  }>;
5569
5245
  }, z.core.$strip>], "status">>;
5570
5246
  runId: PublicIdSchema;
@@ -5578,10 +5254,10 @@ export declare const publicContractsV1: {
5578
5254
  }, z.core.$strip>;
5579
5255
  status: z.ZodEnum<{
5580
5256
  failed: "failed";
5581
- running: "running";
5582
- canceled: "canceled";
5583
5257
  queued: "queued";
5258
+ running: "running";
5584
5259
  passed: "passed";
5260
+ canceled: "canceled";
5585
5261
  }>;
5586
5262
  url: z.ZodURL;
5587
5263
  }, z.core.$strip>;
@@ -5627,50 +5303,6 @@ export declare const publicContractsV1: {
5627
5303
  url: z.ZodURL;
5628
5304
  }, z.core.$strip>;
5629
5305
  };
5630
- triage: {
5631
- readonly annotations: {
5632
- readonly destructiveHint: false;
5633
- readonly openWorldHint: false;
5634
- readonly readOnlyHint: true;
5635
- };
5636
- readonly description: string;
5637
- readonly input: z.ZodObject<{
5638
- flowId: PublicIdSchema;
5639
- runId: PublicIdSchema;
5640
- }, z.core.$strip>;
5641
- readonly kind: "read";
5642
- readonly name: "run.triage";
5643
- readonly output: z.ZodObject<{
5644
- answers: z.ZodObject<{
5645
- verdict: z.ZodObject<{
5646
- choice: z.ZodEnum<{
5647
- bug: "bug";
5648
- maintenance: "maintenance";
5649
- }>;
5650
- confidence: z.ZodNumber;
5651
- probabilities: z.ZodRecord<z.ZodString, z.ZodNumber>;
5652
- type: z.ZodLiteral<"choice">;
5653
- }, z.core.$strip>;
5654
- }, z.core.$strip>;
5655
- decision: z.ZodDiscriminatedUnion<[z.ZodObject<{
5656
- diagnosis: z.ZodEnum<{
5657
- bug: "bug";
5658
- maintenance: "maintenance";
5659
- }>;
5660
- type: z.ZodLiteral<"diagnose">;
5661
- }, z.core.$strip>, z.ZodObject<{
5662
- diagnosis: z.ZodEnum<{
5663
- bug: "bug";
5664
- maintenance: "maintenance";
5665
- }>;
5666
- type: z.ZodLiteral<"suggest">;
5667
- }, z.core.$strip>, z.ZodObject<{
5668
- type: z.ZodLiteral<"needsHuman">;
5669
- }, z.core.$strip>], "type">;
5670
- model: z.ZodString;
5671
- state: z.ZodJSONSchema;
5672
- }, z.core.$strip>;
5673
- };
5674
5306
  };
5675
5307
  runner: {
5676
5308
  runFlow: {